SHGetKnownFolderPath and the KNOWNFOLDERID

In Vista the CSIDL as used in SHGetFolderPath are no longer the way to go. The recommended APIs such as SHGetKnownFolderPath take a KNOWNFOLDERID or actually a REFKNOWNFOLDERID. If you're wondering where those are defined and can't find them, well, I couldn't either. After consulting with Yves (consultant) the GUIDs are defined in KnownFolders.h.

Some of the APIs mention the header, some don't.


Comments (2)
  1. Yvesb says:

    On the MSDN’s documentation of this new function (, there is a scary sentence, in the Remarks section:

    "Callers using this function must have Administrator privileges."

    I DO hope this is a mistake in the documentation…

  2. MSDN Archive says:

    Thanks Yves. I verified that one doesn’t need admin privileges to call the function. I’ll ask to get the documentation updated.


Comments are closed.

Skip to main content