本文整理汇总了C++中CComModule::GetLockCount方法的典型用法代码示例。如果您正苦于以下问题:C++ CComModule::GetLockCount方法的具体用法?C++ CComModule::GetLockCount怎么用?C++ CComModule::GetLockCount使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CComModule
的用法示例。
在下文中一共展示了CComModule::GetLockCount方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DllCanUnloadNow
STDAPI DllCanUnloadNow(void)
{
#ifdef _MERGE_PROXYSTUB
if (PrxDllCanUnloadNow() != S_OK)
return S_FALSE;
#endif
return (_Module.GetLockCount()==0) ? S_OK : S_FALSE;
}
示例2: AfxGetStaticModuleState
/////////////////////////////////////////////////////////////////////////////
//++
//
// DllCanUnloadNow
//
// Description:
// Used to determine whether the DLL can be unloaded by COM.
//
// Arguments:
// None.
//
// Return Value:
// S_OK
// Dll can be unloaded now.
//
// S_FALSE
// Dll cannot be unloaded now...
//
//--
/////////////////////////////////////////////////////////////////////////////
STDAPI
DllCanUnloadNow( void )
{
AFX_MANAGE_STATE( AfxGetStaticModuleState() );
return ( AfxDllCanUnloadNow() && _Module.GetLockCount() == 0 ) ? S_OK : S_FALSE;
} //*** DllCanUnloadNow
示例3: DllCanUnloadNow
STDAPI DllCanUnloadNow(void)
{
#ifdef _MERGE_PROXYSTUB
if (PrxDllCanUnloadNow() != S_OK)
return S_FALSE;
#endif
AFX_MANAGE_STATE(AfxGetStaticModuleState());
return (AfxDllCanUnloadNow()==S_OK && _Module.GetLockCount()==0) ? S_OK : S_FALSE;
}
示例4: DllCanUnloadNow
STDAPI DllCanUnloadNow(void)
{
#ifdef _MERGE_PROXYSTUB
if (S_OK != PrxDllCanUnloadNow())
return S_FALSE;
#endif
return _Module.GetLockCount() ? S_FALSE : S_OK;
}
示例5: DllCanUnloadNow
STDAPI DllCanUnloadNow(void)
{
HRESULT hr;
TraceMsg( L"-->DllCanUnloadNow.\n");
hr = (_Module.GetLockCount() == 0) ? S_OK : S_FALSE;
TraceMsg( L"-->DllCanUnloadNow(HRESULT = %x).\n",
hr );
return hr;
}
示例6: DllCanUnloadNow
STDAPI DllCanUnloadNow(void)
{
#ifdef _MERGE_PROXYSTUB
if ( PrxDllCanUnloadNow() != S_OK )
{
return S_FALSE;
}
#endif
if ( _Module.GetLockCount() == 0 )
{
//
// All references to COM objects in this DLL have been released, so
// the DLL can now be safely unloaded. After this returns, DllMain
// will be called with dwReason == DLL_PROCESS_DETACH.
//
return S_OK;
}
else
{
return S_FALSE;
}
}
示例7: DllCanUnloadNow
STDAPI DllCanUnloadNow(void) {
return (_Module.GetLockCount()==0) ? S_OK : S_FALSE;
}
示例8: DllCanUnloadNow
STDAPI DllCanUnloadNow(void)
{
ATLTRACE("DllCanUnloadNow\n");
return (_Module.GetLockCount()==0) ? S_OK : S_FALSE;
}
示例9: canUnloadNow
HRESULT OPCEngine::canUnloadNow(void)
{
LONG lockCount = _Module.GetLockCount();
_TRACE(TL_INF, TG_COM, (_T("canUnloadNow: lock count %ld"), lockCount));
return (lockCount == 0) ? S_OK : S_FALSE;
}
示例10: DllCanUnloadNow
extern "C" STDMETHODIMP DllCanUnloadNow(void)
{
return _Module.GetLockCount()==0 ? S_OK : S_FALSE;
}
示例11: DllCanUnloadNow
STDAPI DllCanUnloadNow(void)
{
IncludingDemo::Program::ATDeleteInstance;
return (_Module.GetLockCount()==0) ? S_OK : S_FALSE;
}
示例12: ExitInstance
int CObjManApp::ExitInstance()
{
_Module.Term();
TRACE("Objektverwaltung wird entladen. Objekt-Count: %d\n", _Module.GetLockCount());
return CWinApp::ExitInstance();
}
示例13: DllCanUnloadNow
STDAPI DllCanUnloadNow(void)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
TRACE0("ScdIF : Calling AfxDllCanUnloadNow\n");
return (AfxDllCanUnloadNow()==S_OK && _Module.GetLockCount()==0) ? S_OK : S_FALSE;
}