Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 |