Windows Dev Center

IGroupPolicyObject::GetOptions method

The GetOptions method retrieves the options for the GPO.

Syntax


HRESULT GetOptions(
  [out]  DWORD *dwOptions
);

Parameters

dwOptions [out]

Receives the options. This parameter can be one or more of the following options.

ValueMeaning
GPO_OPTION_DISABLE_USER

The user portion of the GPO is disabled.

GPO_OPTION_DISABLE_MACHINE

The computer portion of the GPO is disabled.

 

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.

Remarks

To set the options for a GPO, you can call the SetOptions method.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

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
SetOptions

 

 

Show:
© 2015 Microsoft