IGroupPolicyObject::SetDisplayName method (gpedit.h)

The SetDisplayName method sets the display name for the GPO.

Syntax

HRESULT SetDisplayName(
  [in] LPOLESTR pszName
);

Parameters

[in] pszName

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

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header gpedit.h
DLL Gpedit.dll

See also

GetDisplayName

Group Policy Interfaces

Group Policy Overview

IGroupPolicyObject