IGPEInformation::GetName method

The GetName method retrieves the unique name for the GPO. This value is usually a GUID.

Syntax


void GetName(
  [out] LPOLESTR pszName,
  [in]  int      cchMaxLength
);

Parameters

pszName [out]

Receives the GPO name.

cchMaxLength [in]

Specifies the size, in characters, of the pszName buffer.

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 GPO's friendly name, which is suitable for display, 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_IGPEInformation is defined as 8FC0B735-A0E1-11d1-A7D3-0000F87571E3

See also

Group Policy Overview
Group Policy Interfaces
IGPEInformation
GetDisplayName

 

 

Show: