次の方法で共有


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.

Maarten

Comments

  • Anonymous
    April 24, 2007
    On the MSDN's documentation of this new function (http://msdn2.microsoft.com/en-us/library/ms647783.aspx), 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...

  • Anonymous
    April 25, 2007
    Thanks Yves. I verified that one doesn't need admin privileges to call the function. I'll ask to get the documentation updated. Maarten