Vista Compatibility Team Blog

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

Published Tuesday, January 30, 2007 9:32 PM by VistaCompatTeam

Comments

 

Yvesb said:

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...

April 25, 2007 3:06 AM
 

VistaCompatTeam said:

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

Maarten

April 25, 2007 11:39 AM
Anonymous comments are disabled

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker