CWbemProviderGlue::FrameworkLogoffDLL(LPCWSTR,PLONG) method (wbemglue.h)

[The CWbemProviderGlue class is part of the WMI Provider Framework which is now considered in final state, and no further development, enhancements, or updates will be available for non-security related issues affecting these libraries. The MI APIs should be used for all new development.]

The FrameworkLogoffDLL method is called by DllCanUnloadNow to determine whether the provider server is not in use and can be unloaded.

Syntax

BOOL FrameworkLogoffDLL(
  LPCWSTR name,
  PLONG   plRefCount
);

Parameters

name

Name of the server that is unloaded.

plRefCount

The current reference count. This LONG must be the same one used in FrameworkLoginDLL and as the parameter to the CWbemGlueFactory constructor.

Return value

The method returns TRUE if the server is not in use and can be unloaded and FALSE if the server is still in use and cannot be unloaded.

Remarks

For now, FrameworkLogoffDLL returns FALSE until the refcount for CWbemProviderGlue is zero. This approach prevents unloading any client DLL while instances of CWbemProviderGlue still exist.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header wbemglue.h (include FwCommon.h)
Library FrameDyn.lib
DLL FrameDynOS.dll; FrameDyn.dll