IGroupPolicyObject::GetType method

The GetType method retrieves type information for the GPO being edited.

Syntax


HRESULT GetType(
  [out]  GROUP_POLICY_OBJECT_TYPE *gpoType
);

Parameters

gpoType [out]

Receives the GPO type. The system sets this parameter to one of the following values.

ValueMeaning
GPOTypeDS

Active Directory

GPOTypeLocal

Local

GPOTypeRemote

Remote

 

Return value

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

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Gpedit.h

DLL

Gpedit.dll

IID

IID_IGroupPolicyObject is defined as EA502723-A23D-11d1-A7D3-0000F87571E3

See also

Group Policy Overview
Group Policy Interfaces
IGroupPolicyObject

 

 

Show:
© 2014 Microsoft