Changeset 64160 in vbox for trunk/src/VBox/Main/src-server/win
- Timestamp:
- Oct 6, 2016 12:03:52 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/win/svcmain.cpp
r63549 r64160 155 155 BOOL ShutdownBlockReasonCreateAPI(HWND hWnd,LPCWSTR pwszReason) 156 156 { 157 BOOL result = FALSE;157 BOOL fResult = FALSE; 158 158 typedef BOOL(WINAPI *PFNSHUTDOWNBLOCKREASONCREATE)(HWND hWnd, LPCWSTR pwszReason); 159 159 … … 162 162 _ASSERTE(pfn); 163 163 if (pfn) 164 result = pfn(hWnd, pwszReason);165 return result;164 fResult = pfn(hWnd, pwszReason); 165 return fResult; 166 166 } 167 167 … … 172 172 BOOL ShutdownBlockReasonDestroyAPI(HWND hWnd) 173 173 { 174 BOOL result = FALSE;174 BOOL fResult = FALSE; 175 175 typedef BOOL(WINAPI *PFNSHUTDOWNBLOCKREASONDESTROY)(HWND hWnd); 176 176 … … 179 179 _ASSERTE(pfn); 180 180 if (pfn) 181 result = pfn(hWnd);182 return result;181 fResult = pfn(hWnd); 182 return fResult; 183 183 } 184 184 … … 198 198 /* decrease a latency of MonitorShutdown loop */ 199 199 ASMAtomicXchgU32(&dwTimeOut, 100); 200 Log(("VBoxSVCWinMain: VBoxSvc has active connections. bActivity = %d. Loc count = %d\n",200 Log(("VBoxSVCWinMain: WM_QUERYENDSESSION: VBoxSvc has active connections. bActivity = %d. Loc count = %d\n", 201 201 _Module.bActivity, _Module.GetLockCount())); 202 202 } 203 Log(("VBoxSVCWinMain: WM_QUERYENDSESSION msg: %d rc= %d\n", msg, rc)); 204 } break; 203 } break; 205 204 case WM_ENDSESSION: 206 205 { … … 211 210 Log(("VBoxSVCWinMain: user canceled system shutdown.\n")); 212 211 } 213 Log(("VBoxSVCWinMain: WM_ENDSESSION msg: %d. wParam: %d. lParam: %d\n", msg, wParam, lParam));214 212 } break; 215 213 case WM_DESTROY: 216 214 { 217 Log(("VBoxSVCWinMain: WM_DESTROY \n"));218 215 ShutdownBlockReasonDestroyAPI(hwnd); 219 216 PostQuitMessage(0); … … 222 219 default: 223 220 { 224 Log(("VBoxSVCWinMain: msg %p\n", msg));225 221 rc = DefWindowProc(hwnd, msg, wParam, lParam); 226 222 }
Note:
See TracChangeset
for help on using the changeset viewer.