IGroupPolicyObject::SetDisplayName method

The SetDisplayName method sets the display name for the GPO.

Syntax


HRESULT SetDisplayName(
  [in] LPOLESTR pszName
);

Parameters

pszName [in]

Specifies the new display name.

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 retrieve the display name for a GPO, you can call the GetDisplayName method.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

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
GetDisplayName

 

 

Show: