Platform SDK: Group Policy |
Retrieves the unique GPO name. For Active Directory objects, this is a GUID. For a local object, this is the string "Local". For remote objects, this is the computer name.
HRESULT GetName( LPOLESTR pszName, int cchMaxLength );
If the function succeeds, the return value is S_OK. Otherwise, the function returns one of the COM error codes defined in the Platform SDK header file WinError.h.
Windows NT/2000: Requires Windows 2000.
Header: Declared in Gpedit.h.
Group Policy Overview, Group Policy Interfaces, IGroupPolicyObject