IGPMDomain::GetWMIFilter method (gpmgmt.h)
Retrieves a GPMWMIFilter object for the specified path.
Syntax
HRESULT GetWMIFilter(
[in] BSTR bstrPath,
[out] IGPMWMIFilter **ppWMIFilter
);
Parameters
[in] 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}".
[out] 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
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | gpmgmt.h |
DLL | Gpmgmt.dll |