generic documents and settings path

  • Thread starter Thread starter Stephan Steiner
  • Start date Start date
S

Stephan Steiner

Hi

Is there a way to get the generic documents and settings path like there is
for the program files path, or the windows/system32 path?

Stephan
 
Stephan,
I have not tried it, I believe you can use SHGetFolderLocation,
SHGetFolderPath, SHGetSpecialFolderLocation or SHGetSpecialFolderPath with
CSIDL_PROFILES.

The above 4 functions are Win32 APIs, you will need to define one of them so
you can use P/Invoke with it. There are restriction on which CSIDL you can
use with each call...

Post if you need help.

Hope this helps
Jay
 
Back
Top