VirtualBox

Ignore:
Timestamp:
Jan 26, 2011 4:37:16 PM (14 years ago)
Author:
vboxsync
Message:

Main: reworked listener objects creation, fixes Win problems with events, few cleanups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/win/svcmain.cpp

    r35368 r35722  
    2020#include "VBox/com/defs.h"
    2121
     22#include "VBox/com/com.h"
     23
    2224#include "VBox/com/VirtualBox.h"
    2325
     
    157159    lpCmdLine = GetCommandLine(); /* this line necessary for _ATL_MIN_CRT */
    158160
    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
    164163    _ASSERTE(SUCCEEDED(hRes));
    165164    _Module.Init(ObjectMap, hInstance, &LIBID_VirtualBox);
     
    277276
    278277    _Module.Term();
    279     CoUninitialize();
     278
     279    com::Shutdown();
     280
    280281    Log(("SVCMAIN: Returning, COM server process ends.\n"));
    281282    return nRet;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette