Q: How to get the windows directory?
A:
<br>Code:TCHAR szDirectory[MAX_PATH] = "";
UINT Bytes = ::GetWindowsDirectory(szDirectory, sizeof(szDirectory));
if(!Bytes)
// Error -> call '::GetLastError()'
else if(Bytes > sizeof(szDirectory))
// Buffer too small
else
// Success
