IGPMDomain::SearchWMIFilters method (gpmgmt.h)
Executes a search for GPMWMIFilter objects in the domain and then returns a GPMWMIFilterCollection object.
HRESULT SearchWMIFilters(
[in] IGPMSearchCriteria *pIGPMSearchCriteria,
[out] IGPMWMIFilterCollection **ppIGPMWMIFilterCollection
);
[in] pIGPMSearchCriteria
This parameter should be NULL, or it should point to an empty IGPMSearchCriteria interface, because no search criteria are allowed for Windows Management Instrumentation (WMI) filters.
[out] ppIGPMWMIFilterCollection
Address of a pointer to the IGPMWMIFilterCollection interface that represents the WMI filters found by the search.
Returns S_OK if successful. Returns a failure code if an error occurs. Returns a reference to a GPMWMIFilterCollection object. Returns a reference to a GPMWMIFilterCollection object.An empty GPMSearchCriteria object is one that has had no criteria added to it. Passing in an empty GPMSearchCriteria object will return all WMI filters.
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | gpmgmt.h |
DLL | Gpmgmt.dll |