WoW :up::up:Chicon said:Hi AZPC,
There is an example on the following page :
http://msdn2.microsoft.com/en-us/library/ak37a69s(VS.80).aspx
![]()
TCHAR OSDir[MAX_PATH];
GetWindowsDirectory (OSDir,MAX_PATH);
::MessageBox (NULL,OSDir,"1",MB_OK);
int GetSpecialDir(int dir_csidl, char *buf) {
int status;
if (!strlen(buf))
status = SHGetSpecialFolderPathA(NULL, buf, dir_csidl, 0);
return status;
}
//called as
status = GetSpecialDir(CSIDL_WINDOWS, (LPSTR)&cDirName);