Platform SDK: Group Policy

IGroupPolicyObject::GetType

Retrieves type information for the GPO being edited.

HRESULT GetType(
  GROUP_POLICY_OBJECT_TYPE *gpoType
);

Parameters

gpoType
Receives the GPO type. The system sets this parameter to one of the following values.
Value Meaning
GPOTypeDS Active Directory
GPOTypeLocal Local
GPOTypeRemote Remote

Return Values

If the function succeeds, the return value is S_OK. Otherwise, the function returns one of the COM error codes defined in the Platform SDK header file WinError.h.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Header: Declared in Gpedit.h.

See Also

Group Policy Overview, Group Policy Interfaces, IGroupPolicyObject