IRSOPInformation::GetNameSpace method

The GetNameSpace method retrieves the namespace from which the RSoP data is being displayed.

Syntax


HRESULT GetNameSpace(
  [in]  DWORD    dwSection,
  [out] LPOLESTR pszName,
  [in]  int      cchMaxLength
);

Parameters

dwSection [in]

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

GPO_SECTION_ROOT

Root section

GPO_SECTION_USER

User section

GPO_SECTION_MACHINE

Computer section

pszName [out]

Receives the namespace from which the RSoP data is being displayed. The computer and user RSoP data are in sub-namespaces under this namespace. Computer RSoP data is under the Computer sub-namespace, and user RSoP data is under the User sub-namespace.

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.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Gpedit.h

DLL

Gpedit.dll

IID

IID_IRSOPInformation is defined as 9A5A81B5-D9C7-49EF-9D11-DDF50968C48D

See also

Group Policy Overview
Group Policy Interfaces
IRSOPInformation

 

 

Show: