change start path of browse function

D

daMike

Hello,

I have a function to search for a file or folder.
From this function I get as return value the path of
the desired folder or file. Is it somehow possible to
change the start path of this function? I wanna start
the search on another drive/folder!

**************** Code *************************

Private Type BrowseInfo
hWndOwner As Long
pidlRoot As Long
sDisplayName As String
sTitle As String
ulFlags As Long
lpfn As Long
lParam As Long
iImage As Long
End Type

Private Declare Function SHBrowseForFolder Lib "Shell32.dll" (bBrowse
As BrowseInfo) As Long

Private Declare Function SHGetPathFromIDList Lib "Shell32.dll" (ByVal
lItem As Long, ByVal sDir As String) As Long
**************** Code *************************

Thanks in advance!
daMike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top