GKProgrammer
Programmer
Hi All,
I am using the SHBrowseForFolder function in a program that I am currently writing. I have created a type shellBrowseInfo:
Type shellBrowseInfo
hwndOwner As Long
pIDlRoot As Long
pszDisplayName As Long
IpszTitle As String
uIFlags As Long
IpfnCallBack As Long
IParam As Long
iImage As Long
End Type
When the browse for folder dialog box appears I want it to only display one certain folder with all subfolders within that folder. This folder will be different for whichever user is logged in, so the folder looks as follows:
H:\Home\USERNAME\PCAM <--(fill in actual user for USERNAME)
I can get the string version of this path very easily and I have no porblem doing that. My problem is that the parameter that sets which folder to begin with is the pIDlRoot displayed above. This is a pointer to an Item ID (PIDL), does anybody know how to get this PIDL from possibly a string version of the path so that I can pass it into this parameter before opening the browse for folder dialog box. Any other comments or suggestions will be welcomed also.
Thank you very much,
gkprogrammer
I am using the SHBrowseForFolder function in a program that I am currently writing. I have created a type shellBrowseInfo:
Type shellBrowseInfo
hwndOwner As Long
pIDlRoot As Long
pszDisplayName As Long
IpszTitle As String
uIFlags As Long
IpfnCallBack As Long
IParam As Long
iImage As Long
End Type
When the browse for folder dialog box appears I want it to only display one certain folder with all subfolders within that folder. This folder will be different for whichever user is logged in, so the folder looks as follows:
H:\Home\USERNAME\PCAM <--(fill in actual user for USERNAME)
I can get the string version of this path very easily and I have no porblem doing that. My problem is that the parameter that sets which folder to begin with is the pIDlRoot displayed above. This is a pointer to an Item ID (PIDL), does anybody know how to get this PIDL from possibly a string version of the path so that I can pass it into this parameter before opening the browse for folder dialog box. Any other comments or suggestions will be welcomed also.
Thank you very much,
gkprogrammer