コード例 #1
0
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;
}
コード例 #2
0
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;

}
コード例 #3
0
// 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;
}
コード例 #4
0
ファイル: daqoHandlers.cpp プロジェクト: niumuguang/daqo
// DllRegisterServer - 向系统注册表中添加项。
STDAPI DllRegisterServer(void)
{
	// 注册对象、类型库和类型库中的所有接口
	HRESULT hr = _AtlModule.DllRegisterServer();
	if (FAILED(hr))
		return hr;
	hr = PrxDllRegisterServer();
	return hr;
}
コード例 #5
0
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);
}
コード例 #6
0
ファイル: edbs.cpp プロジェクト: gsaralji/TRiAS
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);
}
コード例 #7
0
ファイル: usStyles.cpp プロジェクト: lozpeng/applesales
// DllRegisterServer - 将项添加到系统注册表
STDAPI DllRegisterServer(void)
{
    // 注册对象、类型库和类型库中的所有接口
    HRESULT hr = _AtlModule.DllRegisterServer();
#ifdef _MERGE_PROXYSTUB
    if (FAILED(hr))
        return hr;
    hr = PrxDllRegisterServer();
#endif
	return hr;
}
コード例 #8
0
ファイル: COM-server.cpp プロジェクト: mightymamont/Demos
// DllRegisterServer - добавляет записи в системный реестр.
STDAPI DllRegisterServer(void)
{
	// регистрирует объект, библиотеку типов и все интерфейсы в библиотеке типов
	HRESULT hr = _AtlModule.DllRegisterServer();
	#ifdef _MERGE_PROXYSTUB
	if (FAILED(hr))
		return hr;
	hr = PrxDllRegisterServer();
#endif
		return hr;
}
コード例 #9
0
ファイル: RScript22.cpp プロジェクト: arton/RScript22
// DllRegisterServer - エントリをシステム レジストリに追加します。
STDAPI DllRegisterServer(void)
{
	// オブジェクト、タイプ ライブラリおよびタイプ ライブラリ内のすべてのインターフェイスを登録します
	HRESULT hr = _AtlModule.DllRegisterServer();
	#ifdef _MERGE_PROXYSTUB
	if (FAILED(hr))
		return hr;
	hr = PrxDllRegisterServer();
#endif
		return hr;
}
コード例 #10
0
ファイル: ComTest.cpp プロジェクト: AdolphLua/vld
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;
}
コード例 #11
0
ファイル: daqoHandlers.cpp プロジェクト: niumuguang/daqo
// DllUnregisterServer - 移除系统注册表中的项。
STDAPI DllUnregisterServer(void)
{
	HRESULT hr = _AtlModule.DllUnregisterServer();
	if (FAILED(hr))
		return hr;
	hr = PrxDllRegisterServer();
	if (FAILED(hr))
		return hr;
	hr = PrxDllUnregisterServer();
	return hr;
}
コード例 #12
0
ファイル: OEGui.cpp プロジェクト: ichengzi/UDSOnlineEditor
// 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;
}
コード例 #13
0
ファイル: ModuleEntry.cpp プロジェクト: agran147/FieldWorks
/*----------------------------------------------------------------------------------------------
	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;
}
コード例 #14
0
ファイル: TCObj.cpp プロジェクト: borgified/Allegiance
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");
}
コード例 #15
0
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;
}
コード例 #16
0
// 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;
}
コード例 #17
0
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;
}
コード例 #18
0
ファイル: IISxpressPerf.cpp プロジェクト: UIKit0/IISxpress
// 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;
}
コード例 #19
0
ファイル: IISxpressPerf.cpp プロジェクト: UIKit0/IISxpress
// 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;
}