ronin258
asked on
need help setting root directory for a BrowseInfo object
I am using BrowseInfo with BrowseForFolder to let the user select a folder but I want to specify a certain directory as the root directory. I am trying to use the function SHSimpleIDListFromPath(str ing path of folder) to get the PIDL of the folder. The problem is that I don't know the right syntax for the declaration of the function.
I tried:
Declare Function SHSimpleIDListFromPath Lib "shell32.dll" (ByVal pszPath As String) As Long
I get the error "Can't find DLL entry point SHSimpleIDListFromPath in shell32.dll" Can anybody help me?
I tried:
Declare Function SHSimpleIDListFromPath Lib "shell32.dll" (ByVal pszPath As String) As Long
I get the error "Can't find DLL entry point SHSimpleIDListFromPath in shell32.dll" Can anybody help me?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Private Declare Function SHSimpleIDListFromPath Lib "Shell32" Alias "#162" _
(ByVal lpszPath As String) As Long