static ULONG WINAPI IDxDiagContainerImpl_AddRef(PDXDIAGCONTAINER iface) { IDxDiagContainerImpl *This = (IDxDiagContainerImpl *)iface; ULONG refCount = InterlockedIncrement(&This->ref); TRACE("(%p)->(ref before=%lu)\n", This, refCount - 1); DXDIAGN_LockModule(); return refCount; }
static HRESULT WINAPI DXDiagCF_LockServer(IClassFactory *iface, BOOL dolock) { TRACE("(%d)\n", dolock); if (dolock) DXDIAGN_LockModule(); else DXDIAGN_UnlockModule(); return S_OK; }
static ULONG WINAPI DXDiagCF_AddRef(IClassFactory *iface) { DXDIAGN_LockModule(); return 2; /* non-heap based object */ }