IGroupPolicyObject::GetPath method

The GetPath method retrieves the path to the GPO.

Syntax


HRESULT GetPath(
  [out]  LPOLESTR pszPath,
  [in]   int cchMaxPath
);

Parameters

pszPath [out]

Pointer to a buffer that receives the path. If the GPO is an Active Directory object, the path is in ADSI name format. If the GPO is a computer object, this parameter receives a file system path.

cchMaxPath [in]

Specifies the maximum number of characters that can be stored in the pszPath 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.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

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
GetDSPath

 

 

Show:
© 2014 Microsoft