Exemplo n.º 1
0
static HRESULT WINAPI DI8CF_LockServer(LPCLASSFACTORY iface,BOOL dolock) {
    TRACE("(%p)->(%d)\n", iface, dolock);

    if(dolock)
        LockModule();
    else
        UnlockModule();

    return S_OK;
}
Exemplo n.º 2
0
static HRESULT WINAPI MsiCF_LockServer(LPCLASSFACTORY iface, BOOL dolock)
{
    TRACE("%p %d\n", iface, dolock);

    if (dolock)
        LockModule();
    else
        UnlockModule();

    return S_OK;
}
Exemplo n.º 3
0
template <class T> STDMETHODIMP CClassFactory<T>::LockServer
(
    BOOL bLock
)
{
    if ( bLock )
    {
        LockModule();
    }
    else
    {
        UnlockModule();
    }

     return S_OK;
}
Exemplo n.º 4
0
ULONG __stdcall WaveProperty::Release()
{
    DebugPrintLn(NAME TEXT("::Release() begin %d"), m_cRef);

    LONG cRef = ::InterlockedDecrement(&m_cRef);
    if ( cRef == 0 )
    {
        DebugPrintLn(TEXT("Deleting..."));
        delete this;
        DebugPrintLn(TEXT("Deleted"));
    }

    UnlockModule();

    DebugPrintLn(NAME TEXT("::Release() end %d"), cRef);

    return static_cast<ULONG>(cRef);
}
Exemplo n.º 5
0
ULONG __stdcall OutputComponentBase::Release()
{
    DebugPrintLn(TEXT("%s::%s::Release() begin %d"), COMP_NAME, COMP_BASE, m_cRef);

    LONG cRef = ::InterlockedDecrement(&m_cRef);
    if ( cRef == 0 )
    {
        DebugPrintLn(TEXT(". Deleting..."));
        delete this;
        DebugPrintLn(TEXT(". Deleted"));
    }

    UnlockModule();

    DebugPrintLn(TEXT("%s::%s::Release() end %d"), COMP_NAME, COMP_BASE, cRef);

    return static_cast<ULONG>(cRef);
}
Exemplo n.º 6
0
static ULONG WINAPI MsiCF_Release(LPCLASSFACTORY iface)
{
    UnlockModule();
    return 1;
}
Exemplo n.º 7
0
Trader::~Trader()
{
	UnlockModule();
}
Exemplo n.º 8
0
HRESULT __stdcall TraderClassObject::LockServer(BOOL fLock)
{
	fLock ? LockModule() : UnlockModule();
	return S_OK;
}
Exemplo n.º 9
0
TraderClassObject::~TraderClassObject()
{
	UnlockModule();
}