EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

IGroupPolicyObject::GetFileSysPath method

The GetFileSysPath method retrieves the file system path to the root of the specified GPO section. 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]

Pointer to a buffer that receives the 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.

Remarks

To retrieve the Active Directory path to the root of a GPO section, 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_IGroupPolicyObject is defined as EA502723-A23D-11d1-A7D3-0000F87571E3

See also

Group Policy Overview
Group Policy Interfaces
IGroupPolicyObject
GetDSPath

 

 

표시:
© 2014 Microsoft