LPTSTR lpszSystemInfo; // pointer to system information string TCHAR tchUserHome [BUFFER]; lpszSystemInfo = tchBuffer2; DWORD dwResult = ExpandEnvironmentStrings ( "% OS%", lpszSystemInfo, BUFFER); TRACE (lpszSystemInfo);