Saturday, 28 May 2011

Get User Documents Folder in C++ with SHGetSpecialFolderPath

How to obtain the user login documents folder in C++

  TCHAR strPath[ MAX_PATH ];

 // Get the special folder path.
  SHGetSpecialFolderPath(
  0,       // Hwnd
  strPath, // String buffer.
  CSIDL_PERSONAL, // CSLID of folder
  FALSE ); // Create if doesn't exists?

No comments:

Post a Comment