IGPMDomain::GetWMIFilter method

Retrieves a GPMWMIFilter object for the specified path.

Syntax

HRESULT GetWMIFilter(
  BSTR          bstrPath,
  IGPMWMIFilter **ppWMIFilter
);

Parameters

bstrPath

Path of the GPMWMIFilter object to retrieve, in the following format: MSFT_SomFilter.Domain="<domain of the WMI filter>", ID="<GUID that represents the WMI filter>". Consider this example: MSFT_SomFilter.Domain="example.microsoft.com", ID="{7ab06d20-5e0a-4de9-8170-13dea779a528}".

ppWMIFilter

Address of a pointer to the IGPMWMIFilter interface.

Return Value

C++

Returns S_OK if successful. Returns a failure code if an error occurs.

JScript

Returns a reference to a GPMWMIFilter object.

VB

Returns a reference to a GPMWMIFilter object.

Requirements

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

See Also

IGPMDomain

IGPMWMIFilter