Changeset 60765 in vbox for trunk/src/VBox/Main/src-client/win
- Timestamp:
- Apr 29, 2016 2:26:58 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 106960
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/win/dllmain.cpp
r59369 r60765 25 25 #include <VirtualBoxClientImpl.h> 26 26 27 #include <atlbase.h>28 #include <atlcom.h>29 30 27 #include <iprt/initterm.h> 31 28 … … 34 31 * Global Variables * 35 32 *********************************************************************************************************************************/ 36 CComModule _Module;33 static ATL::CComModule _Module; 37 34 38 35 BEGIN_OBJECT_MAP(ObjectMap) … … 50 47 if (dwReason == DLL_PROCESS_ATTACH) 51 48 { 49 // idempotent, so doesn't harm, and needed for COM embedding scenario 50 RTR3InitDll(RTR3INIT_FLAGS_UNOBTRUSIVE); 51 52 52 _Module.Init(ObjectMap, hInstance, &LIBID_VirtualBox); 53 53 DisableThreadLibraryCalls(hInstance); 54 55 // idempotent, so doesn't harm, and needed for COM embedding scenario56 RTR3InitDll(RTR3INIT_FLAGS_UNOBTRUSIVE);57 54 } 58 55 else if (dwReason == DLL_PROCESS_DETACH) … … 68 65 STDAPI DllCanUnloadNow(void) 69 66 { 70 return (_Module.GetLockCount() ==0) ? S_OK : S_FALSE;67 return (_Module.GetLockCount() == 0) ? S_OK : S_FALSE; 71 68 } 72 69 … … 74 71 // Returns a class factory to create an object of the requested type 75 72 76 STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)73 STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) 77 74 { 78 75 return _Module.GetClassObject(rclsid, riid, ppv);
Note:
See TracChangeset
for help on using the changeset viewer.