CWbemProviderGlue::FrameworkLogoffDLL method

[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
);

Parameters

name

Name of the server that is unloaded.

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

   
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