STDAPI DllRegisterServer(void) { HRESULT hresult; hresult = S_OK; #ifdef _MERGE_PROXYSTUB hresult = PrxDllRegisterServer(); #endif if (SUCCEEDED(hresult)) { hresult = _Module.RegisterServer(TRUE); } // **************************************************************************** // **************************************************************************** // !!!! Temporary code: registrating the categories should be done by the setup // **************************************************************************** HRESULT hr = Create4C_CATIDs(); if (FAILED(hr)) { return hr; } //if (SUCCEEDED(hresult)) { // hresult = RegisterCategory(); //} // end temp code // **************************************************************************** // **************************************************************************** return hresult; }
STDAPI DllUnregisterServer(void) { HRESULT hr = _AtlModule.DllUnregisterServer(); #ifdef _MERGE_PROXYSTUB if (FAILED(hr)) return hr; hr = PrxDllRegisterServer(); if (FAILED(hr)) return hr; hr = PrxDllUnregisterServer(); #endif return hr; }
// DllRegisterServer - Adds entries to the system registry. STDAPI DllRegisterServer(void) { // registers object, typelib and all interfaces in typelib HRESULT hr = _AtlModule.DllRegisterServer(); if (FAILED(hr)) return hr; hr = PrxDllRegisterServer(); return hr; }
// DllRegisterServer - 向系统注册表中添加项。 STDAPI DllRegisterServer(void) { // 注册对象、类型库和类型库中的所有接口 HRESULT hr = _AtlModule.DllRegisterServer(); if (FAILED(hr)) return hr; hr = PrxDllRegisterServer(); return hr; }
STDAPI DllRegisterServer(void) { #ifdef _MERGE_PROXYSTUB HRESULT hRes = PrxDllRegisterServer(); if (FAILED(hRes)) return hRes; #endif // registers object, typelib and all interfaces in typelib return _Module.RegisterServer(TRUE); }
STDAPI DllRegisterServer(void) { #ifdef _MERGE_PROXYSTUB HRESULT hRes = PrxDllRegisterServer(); if (FAILED(hRes)) return hRes; #endif // Registriert Objekt, Typelib und alle Schnittstellen in Typelib return _Module.RegisterServer(TRUE); }
// DllRegisterServer - 将项添加到系统注册表 STDAPI DllRegisterServer(void) { // 注册对象、类型库和类型库中的所有接口 HRESULT hr = _AtlModule.DllRegisterServer(); #ifdef _MERGE_PROXYSTUB if (FAILED(hr)) return hr; hr = PrxDllRegisterServer(); #endif return hr; }
// DllRegisterServer - добавляет записи в системный реестр. STDAPI DllRegisterServer(void) { // регистрирует объект, библиотеку типов и все интерфейсы в библиотеке типов HRESULT hr = _AtlModule.DllRegisterServer(); #ifdef _MERGE_PROXYSTUB if (FAILED(hr)) return hr; hr = PrxDllRegisterServer(); #endif return hr; }
// DllRegisterServer - エントリをシステム レジストリに追加します。 STDAPI DllRegisterServer(void) { // オブジェクト、タイプ ライブラリおよびタイプ ライブラリ内のすべてのインターフェイスを登録します HRESULT hr = _AtlModule.DllRegisterServer(); #ifdef _MERGE_PROXYSTUB if (FAILED(hr)) return hr; hr = PrxDllRegisterServer(); #endif return hr; }
STDAPI DllRegisterServer(void) { //MessageBox(NULL, L"df", L"df", NULL); HRESULT hr = _AtlModule.DllRegisterServer(); #ifdef _MERGE_PROXYSTUB if (FAILED(hr)) return hr; hr = PrxDllRegisterServer(); #endif return hr; }
// DllUnregisterServer - 移除系统注册表中的项。 STDAPI DllUnregisterServer(void) { HRESULT hr = _AtlModule.DllUnregisterServer(); if (FAILED(hr)) return hr; hr = PrxDllRegisterServer(); if (FAILED(hr)) return hr; hr = PrxDllUnregisterServer(); return hr; }
// DllRegisterServer - Adds entries to the system registry STDAPI DllRegisterServer(void) { // registers object, typelib and all interfaces in typelib HRESULT hr = _AtlModule.DllRegisterServer(); #ifdef _MERGE_PROXYSTUB if (FAILED(hr)) return hr; hr = PrxDllRegisterServer(); #endif return hr; }
/*---------------------------------------------------------------------------------------------- Registers the DLL. This function is required by COM and must be exported from the DLL. ----------------------------------------------------------------------------------------------*/ STDAPI DLLEXPORT__ DllRegisterServer(void) { ENTER_DLL(); ModuleEntry::ModuleAddRef(); HRESULT hr = ModuleEntry::ModuleRegisterServer(); #ifdef _MERGE_PROXYSTUB if (SUCCEEDED(hr) && !ModuleEntry::PerUserRegistration()) hr = PrxDllRegisterServer(); #endif ModuleEntry::ModuleRelease(); return hr; }
STDAPI DllRegisterServer(void) { #ifdef _MERGE_PROXYSTUB RETURN_FAILED(PrxDllRegisterServer()); #endif // registers object, typelib and all interfaces in typelib RETURN_FAILED(_Module.RegisterServer(TRUE)); // Register the component category return RegisterComponentCategory(CATID_TCObj, L"Allegiance Test Common Objects"); }
STDAPI DllRegisterServer(void) { #ifdef _MERGE_PROXYSTUB HRESULT hRes = PrxDllRegisterServer(); if (FAILED(hRes)) return hRes; #endif HRESULT hr; if (SUCCEEDED(hr = _Module.RegisterServer(TRUE))) hr = RegisterGDODataServers(); // _nach_ allen anderen regsitrieren return hr; }
// DllRegisterServer - Adds entries to the system registry STDAPI DllRegisterServer(void) { // registers object, typelib and all interfaces in typelib HRESULT hr = _AtlModule.DllRegisterServer(); #ifdef _MERGE_PROXYSTUB if (FAILED(hr)) return hr; hr = PrxDllRegisterServer(); #endif // Approve this shell extension Approve(_T("ImageWalker.FileMenu"), CLSID_ImageWalkerFileMenu); Approve(_T("ImageWalker.FolderMenu"), CLSID_ImageWalkerFolderMenu); return hr; }
STDAPI DllRegisterServer(void) { HRESULT hresult; hresult = S_OK; #ifdef _MERGE_PROXYSTUB hresult = PrxDllRegisterServer(); #endif if (SUCCEEDED(hresult)) { hresult = _Module.RegisterServer(TRUE); } if (SUCCEEDED(hresult)) { hresult = RegisterCategory(); } return hresult; }
// DllRegisterServer - Adds entries to the system registry STDAPI DllRegisterServer(void) { if (!CanRegisterPerfCounters()) { return S_FALSE; } HRESULT hres = MYATL::RegisterPerfMon(); if (hres != S_OK) return hres; // registers object, typelib and all interfaces in typelib HRESULT hr = _AtlModule.DllRegisterServer(); #ifdef _MERGE_PROXYSTUB if (FAILED(hr)) return hr; hr = PrxDllRegisterServer(); #endif return hr; }
// DllUnregisterServer - Removes entries from the system registry STDAPI DllUnregisterServer(void) { if (!CanRegisterPerfCounters()) { return S_FALSE; } HRESULT hres = MYATL::UnregisterPerfMon(); if (hres != S_OK) return hres; HRESULT hr = _AtlModule.DllUnregisterServer(); #ifdef _MERGE_PROXYSTUB if (FAILED(hr)) return hr; hr = PrxDllRegisterServer(); if (FAILED(hr)) return hr; hr = PrxDllUnregisterServer(); #endif return hr; }