المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : API to get special path



C++ Programming
12-22-2010, 12:01 PM
Is there any way to use SHGetFolderPath() to get the path to the C:\Documents and Settings folder? With Vista and newer, I can use SHGetKnownFolderPath(FOLDERID_UserProfiles, ...) to get the path to the C:\Users folder, but I need an XP solution.

Thanks.

- DC

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

"Man who follows car will be exhausted." - Confucius