Changeset 83844 in vbox
- Timestamp:
- Apr 20, 2020 9:36:02 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/win/VBoxGuestInst.cpp
r82968 r83844 51 51 if (!hSMgrCreate) 52 52 { 53 printf("OpenSCManager(,,create) failed rc=% d\n", GetLastError());53 printf("OpenSCManager(,,create) failed rc=%lu\n", GetLastError()); 54 54 return -1; 55 55 } … … 97 97 printf("successfully started driver '%s'\n", szDriver); 98 98 else 99 printf("StartService failed: % d\n", GetLastError());99 printf("StartService failed: %lu\n", GetLastError()); 100 100 } 101 101 CloseServiceHandle(hService); 102 102 } 103 103 else 104 printf("CreateService failed! lasterr=% d(szDriver=%s)\n", GetLastError(), szDriver);104 printf("CreateService failed! lasterr=%lu (szDriver=%s)\n", GetLastError(), szDriver); 105 105 CloseServiceHandle(hSMgrCreate); 106 106 return hService ? 0 : -1; … … 113 113 if (!hSMgr) 114 114 { 115 printf("OpenSCManager(,,delete) failed rc=% d\n", GetLastError());115 printf("OpenSCManager(,,delete) failed rc=%lu\n", GetLastError()); 116 116 return -1; 117 117 } … … 138 138 else 139 139 { 140 printf("Failed to stop service. status=% d (%#x)\n", Status.dwCurrentState, Status.dwCurrentState);140 printf("Failed to stop service. status=%ld (%#lx)\n", Status.dwCurrentState, Status.dwCurrentState); 141 141 rc = VERR_GENERAL_FAILURE; 142 142 } … … 150 150 else 151 151 { 152 printf("ControlService failed with dwErr=% u. status=%d (%#x)\n",152 printf("ControlService failed with dwErr=%ld. status=%lu (%#lx)\n", 153 153 dwErr, Status.dwCurrentState, Status.dwCurrentState); 154 154 rc = -1; … … 165 165 else 166 166 { 167 printf("DeleteService failed lasterr=% d\n", GetLastError());167 printf("DeleteService failed lasterr=%lu\n", GetLastError()); 168 168 rc = -1; 169 169 } … … 174 174 rc = 0; 175 175 else 176 printf("OpenService failed lasterr=% d\n", GetLastError());176 printf("OpenService failed lasterr=%lu\n", GetLastError()); 177 177 CloseServiceHandle(hSMgr); 178 178 return rc; … … 194 194 if (hDevice == INVALID_HANDLE_VALUE) 195 195 { 196 printf("CreateFile did not work. GetLastError() 0x%x\n", GetLastError());196 printf("CreateFile did not work. GetLastError() %lu\n", GetLastError()); 197 197 } 198 198 return hDevice;
Note:
See TracChangeset
for help on using the changeset viewer.