VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Browse folder dialog box using API

Raj Diwate  (4 Submissions)   Miscellaneous   VB 6.0   Unknown Difficulty   Thu 9th August 2001   Mon 8th February 2021

Browse folder dialog box using API

API Declarations



Private Type udtBrowse
lngHwnd As Long
pIDLRoot As Long
pszDisplayName As Long
lpszTitle As Long
ulFlags As Long
lpfnCallback As Long
lParam As Long
iImage As Long
End Type

Private Const BIF_RETURNONLYFSDIRS = 1
Private Const MAX_PATH = 260

Private Declare Sub CoTaskMemFree Lib "ole32.dll" _
(ByVal hMem As Long)

Private Declare Function lstrcat Lib "Kernel32" _
Alias "lstrcatA" (ByVal lpString1 As String, _
ByVal lpString2 As String) As Long

Private Declare Function SHBrowseForFolder Lib "shell32" _
(lpbi As udtBrowse) As Long

Private Declare Function SHGetPathFromIDList Lib "shell32" _
(ByVal pidList As Long, ByVal lpBuffer As String) As Long

Rate Browse folder dialog box using API (1(1 Vote))
Browse folder dialog box using API.bas

Browse folder dialog box using API Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters