Changeset 35722 in vbox for trunk/src/VBox/Main/src-server/win
- Timestamp:
- Jan 26, 2011 4:37:16 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/win/svcmain.cpp
r35368 r35722 20 20 #include "VBox/com/defs.h" 21 21 22 #include "VBox/com/com.h" 23 22 24 #include "VBox/com/VirtualBox.h" 23 25 … … 157 159 lpCmdLine = GetCommandLine(); /* this line necessary for _ATL_MIN_CRT */ 158 160 159 #if _WIN32_WINNT >= 0x0400 & defined(_ATL_FREE_THREADED) 160 HRESULT hRes = CoInitializeEx(NULL, COINIT_MULTITHREADED); 161 #else 162 HRESULT hRes = CoInitialize(NULL); 163 #endif 161 HRESULT hRes = com::Initialize(); 162 164 163 _ASSERTE(SUCCEEDED(hRes)); 165 164 _Module.Init(ObjectMap, hInstance, &LIBID_VirtualBox); … … 277 276 278 277 _Module.Term(); 279 CoUninitialize(); 278 279 com::Shutdown(); 280 280 281 Log(("SVCMAIN: Returning, COM server process ends.\n")); 281 282 return nRet;
Note:
See TracChangeset
for help on using the changeset viewer.