I need some secure way of getting the system32 dir of windows.
It must be able to handle multiple windows installations on the same machine, and also support win98/winNT/win2000/winXP
_TCHAR* pszPath = new _TCHAR[GetSystemDirectory(NULL, 0) + 1]; //Allocate buffer to hold system path.
GetSystemDirectory(pszPath, GetSystemDirectory(NULL, 0)+1)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.