BrowseForGPO function

The BrowseForGPO function creates a GPO browser dialog box that allows the user to open or create a GPO.

Syntax


HRESULT BrowseForGPO(
  _Inout_ LPGPOBROWSEINFO lpBrowseInfo
);

Parameters

lpBrowseInfo [in, out]

A pointer to a GPOBROWSEINFO structure that contains information used to initialize the dialog box. When the BrowseForGPO function returns, this structure contains information about the user's actions.

Return value

If the function succeeds, the return value is S_OK. If the user cancels or closes the dialog box, the return value is HRESULT_FROM_WIN32(ERROR_CANCELLED). Otherwise, the function returns one of the COM error codes defined in the header file WinError.h.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Gpedit.h

Library

Gpedit.lib

DLL

Gpedit.dll

See also

Group Policy Overview
Group Policy Functions
GPOBROWSEINFO

 

 

Show: