Windows Dev Center

IGPEInformation::GetFileSysPath method

The GetFileSysPath method returns the file system path for the specified section of the GPO. The path is in UNC format.

Syntax


HRESULT GetFileSysPath(
  [in]  DWORD    dwSection,
  [out] LPOLESTR pszPath,
  [in]  int      cchMaxPath
);

Parameters

dwSection [in]

Specifies the GPO section. This parameter can be one of the following values.

ValueMeaning
GPO_SECTION_ROOT

Root section

GPO_SECTION_USER

User section

GPO_SECTION_MACHINE

Computer section

 

pszPath [out]

Receives the file system path.

cchMaxPath [in]

Specifies the size, in characters, of 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.

Remarks

To retrieve the Active Directory path for the specified section of a GPO, you can call the GetDSPath method.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

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
GetDSPath

 

 

Show:
© 2015 Microsoft