IGPM::CreateSearchCriteria method (gpmgmt.h)

Creates and returns a GPMSearchCriteria that represents the criteria to use for performing search operations when you use the Group Policy Management Console (GPMC) interfaces.

Syntax

HRESULT CreateSearchCriteria(
  [out] IGPMSearchCriteria **ppIGPMSearchCriteria
);

Parameters

[out] ppIGPMSearchCriteria

Address of a pointer to the IGPMSearchCriteria interface.

Return value

C++

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

JScript

Returns a reference to a GPMSearchCriteria object.

VB

Returns a reference to a GPMSearchCriteria object.

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

IGPM

IGPMSearchCriteria