troubleshooting Question

need help setting root directory for a BrowseInfo object

Avatar of ronin258
ronin258 asked on
Visual Basic Classic
2 Comments1 Solution867 ViewsLast Modified:
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(string 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?

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros