IGPMGPO::GetWMIFilter method

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

Syntax

HRESULT GetWMIFilter(
  IGPMWMIFilter **ppIGPMWMIFilter
);

Parameters

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

   
Windows version Windows Vista Windows Server 2008
Target Platform Windows
Header gpmgmt.h
DLL Gpmgmt.dll

See Also

IGPMGPO

IGPMWMIFilter