19 STDAPI DllCanUnloadNow(
void)
21 #ifdef _MERGE_PROXYSTUB
22 HRESULT hr = PrxDllCanUnloadNow();
26 return _AtlModule.DllCanUnloadNow();
31 STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
33 #ifdef _MERGE_PROXYSTUB
34 if (PrxDllGetClassObject(rclsid, riid, ppv) == S_OK)
37 return _AtlModule.DllGetClassObject(rclsid, riid, ppv);
42 STDAPI DllRegisterServer(
void)
45 HRESULT hr = _AtlModule.DllRegisterServer();
46 #ifdef _MERGE_PROXYSTUB
49 hr = PrxDllRegisterServer();
56 STDAPI DllUnregisterServer(
void)
58 HRESULT hr = _AtlModule.DllUnregisterServer();
59 #ifdef _MERGE_PROXYSTUB
62 hr = PrxDllRegisterServer();
65 hr = PrxDllUnregisterServer();
72 STDAPI DllInstall(BOOL bInstall, LPCWSTR pszCmdLine)
75 static const wchar_t szUserSwitch[] = L
"user";
77 if (pszCmdLine != NULL)
79 if (_wcsnicmp(pszCmdLine, szUserSwitch, _countof(szUserSwitch)) == 0)
81 AtlSetPerUserRegistration(
true);
87 hr = DllRegisterServer();
90 DllUnregisterServer();
95 hr = DllUnregisterServer();