Changeset 42149 in vbox
- Timestamp:
- Jul 13, 2012 3:22:03 PM (12 years ago)
- Location:
- trunk/src/VBox/Additions/common/VBoxService/testcase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/testcase/Makefile.kmk
r41477 r42149 28 28 # 29 29 tstUserInfo_TEMPLATE = VBOXGUESTR3EXE 30 tstUserInfo_DEFS.win = _WIN32_WINNT=0x0400 _UNICODE UNICODE31 30 tstUserInfo_SOURCES = \ 32 31 tstUserInfo.cpp -
trunk/src/VBox/Additions/common/VBoxService/testcase/tstUserInfo.cpp
r38636 r42149 21 21 *******************************************************************************/ 22 22 #ifdef RT_OS_WINDOWS 23 # include <windows.h> 24 # include <tchar.h> 23 # include <Windows.h> 25 24 # include <stdio.h> 26 25 # include <Shlobj.h> … … 50 49 } 51 50 #ifdef RT_OS_WINDOWS 52 TCHARszPath[MAX_PATH];53 HRESULT hRes = SHGetFolderPath (0, CSIDL_APPDATA, 0, 0,szPath);51 WCHAR wszPath[MAX_PATH]; 52 HRESULT hRes = SHGetFolderPathW(0, CSIDL_APPDATA, 0, 0, wszPath); 54 53 55 54 if (SUCCEEDED(hRes)) 56 55 { 57 RTPrintf("SHGetFolderPathW (CSIDL_APPDATA) = %ls\n", szPath);58 hRes = SHGetFolderPath (0, CSIDL_PERSONAL, 0, 0,szPath);56 RTPrintf("SHGetFolderPathW (CSIDL_APPDATA) = %ls\n", wszPath); 57 hRes = SHGetFolderPathW(0, CSIDL_PERSONAL, 0, 0, wszPath); 59 58 if (SUCCEEDED(hRes)) 60 59 { 61 RTPrintf("SHGetFolderPathW (CSIDL_PERSONAL) = %ls\n", szPath);60 RTPrintf("SHGetFolderPathW (CSIDL_PERSONAL) = %ls\n", wszPath); 62 61 } 63 62 else … … 74 73 RTPrintf("APPDATA = %s\n", getenv("APPDATA")); 75 74 #endif 76 return RT_SUCCESS(rc) ? 0 : 1;75 return RT_SUCCESS(rc) ? RTEXITCODE_SUCCESS : RTEXITCODE_FAILURE; 77 76 } 78 77
Note:
See TracChangeset
for help on using the changeset viewer.