本文整理汇总了C++中PrxDllRegisterServer函数的典型用法代码示例。如果您正苦于以下问题:C++ PrxDllRegisterServer函数的具体用法?C++ PrxDllRegisterServer怎么用?C++ PrxDllRegisterServer使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PrxDllRegisterServer函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DllRegisterServer
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: DllUnregisterServer
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: DllRegisterServer
// 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: DllRegisterServer
// DllRegisterServer - 向系统注册表中添加项。
STDAPI DllRegisterServer(void)
{
// 注册对象、类型库和类型库中的所有接口
HRESULT hr = _AtlModule.DllRegisterServer();
if (FAILED(hr))
return hr;
hr = PrxDllRegisterServer();
return hr;
}
示例5: DllRegisterServer
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);
}
示例6: DllRegisterServer
// DllRegisterServer - 将项添加到系统注册表
STDAPI DllRegisterServer(void)
{
// 注册对象、类型库和类型库中的所有接口
HRESULT hr = _AtlModule.DllRegisterServer();
#ifdef _MERGE_PROXYSTUB
if (FAILED(hr))
return hr;
hr = PrxDllRegisterServer();
#endif
return hr;
}
示例7: DllRegisterServer
// DllRegisterServer - добавляет записи в системный реестр.
STDAPI DllRegisterServer(void)
{
// регистрирует объект, библиотеку типов и все интерфейсы в библиотеке типов
HRESULT hr = _AtlModule.DllRegisterServer();
#ifdef _MERGE_PROXYSTUB
if (FAILED(hr))
return hr;
hr = PrxDllRegisterServer();
#endif
return hr;
}
示例8: DllRegisterServer
// DllRegisterServer - エントリをシステム レジストリに追加します。
STDAPI DllRegisterServer(void)
{
// オブジェクト、タイプ ライブラリおよびタイプ ライブラリ内のすべてのインターフェイスを登録します
HRESULT hr = _AtlModule.DllRegisterServer();
#ifdef _MERGE_PROXYSTUB
if (FAILED(hr))
return hr;
hr = PrxDllRegisterServer();
#endif
return hr;
}
示例9: DllRegisterServer
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;
}
示例10: DllUnregisterServer
// DllUnregisterServer - 移除系统注册表中的项。
STDAPI DllUnregisterServer(void)
{
HRESULT hr = _AtlModule.DllUnregisterServer();
if (FAILED(hr))
return hr;
hr = PrxDllRegisterServer();
if (FAILED(hr))
return hr;
hr = PrxDllUnregisterServer();
return hr;
}
示例11: DllRegisterServer
// 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;
}
示例12: DllRegisterServer
/*----------------------------------------------------------------------------------------------
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;
}
示例13: DllRegisterServer
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");
}
示例14: DllRegisterServer
// 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;
}
示例15: DllRegisterServer
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;
}