IGPMGPO::GetWMIFilter method (gpmgmt.h)

Retrieves the GPMWMIFilter object linked to the Group Policy object (GPO).

Syntax

HRESULT GetWMIFilter(
  [out] IGPMWMIFilter **ppIGPMWMIFilter
);

Parameters

[out] ppIGPMWMIFilter

Address of a pointer to the IGPMWMIFilter interface.

Return value

C++

Returns S_OK if successful. Returns S_FALSE if no WMI filter is linked to the GPO. Returns a failure code if an error occurs.

JScript

If the GPO is linked to a WMI filter, the method returns a reference to a GPMWMIFilter object. If the GPO is not linked to a WMI filter, the method returns a null reference.

VB

If the GPO is linked to a WMI filter, the method returns a reference to a GPMWMIFilter object. If the GPO is not linked to a WMI filter, the method returns a null reference.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header gpmgmt.h
DLL Gpmgmt.dll

See also

IGPMGPO

IGPMWMIFilter