VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Use SHBrowseForFolder With More Functions

Gehan Fernando  (47 Submissions)   Miscellaneous   VB 6.0   Unknown Difficulty   Tue 22nd August 2006   Mon 8th February 2021

Use SHBrowseForFolder With More Functions

API Declarations



Private Const BIF_BROWSEINCLUDEFILES As Long = &H4000
Private Const BIF_RETURNONLYFSDIRS = &H1
Private Const BIF_BROWSEFORCOMPUTER = &H1000
Private Const BIF_BROWSEFORPRINTER = &H2000
Private Const BIF_NEWDIALOGSTYLE As Long = &H40
Private Const MAX_PATH As Long = 260
Private Const BIF_EDITBOX As Long = &H10

Private Enum BrowseType
BFiles = BIF_BROWSEINCLUDEFILES
BFolders = BIF_RETURNONLYFSDIRS
BComputers = BIF_BROWSEFORCOMPUTER
BPrinters = BIF_BROWSEFORPRINTER
End Enum

Private Type BROWSEINFO
hOwner As Long
pidlRoot As Long
pszDisplayName As String
lpszTitle As String
ulFlags As Long
lpfn As Long
lParam As Long
iImage As Long
End Type

Private Bro_T As BROWSEINFO

Private Declare Function SHGetPathFromIDList Lib "shell32" _
Alias "SHGetPathFromIDListA" _
(ByVal pidl As Long, _
ByVal pszPath As String) As Long

Private Declare Function SHBrowseForFolder Lib "shell32" _
Alias "SHBrowseForFolderA" _
(lpBrowseInfo As BROWSEINFO) As Long

Private Declare Sub CoTaskMemFree Lib "ole32" _
(ByVal pv As Long)


Rate Use SHBrowseForFolder With More Functions (1(1 Vote))
Use SHBrowseForFolder With More Functions.bas

Use SHBrowseForFolder With More Functions Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters