BrowseForGPO function (gpedit.h)

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

Syntax

GPEDITAPI HRESULT BrowseForGPO(
  [in, out] LPGPOBROWSEINFO lpBrowseInfo
);

Parameters

[in, out] lpBrowseInfo

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

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header gpedit.h
Library Gpedit.lib
DLL Gpedit.dll

See also

GPOBROWSEINFO

Group Policy Functions

Group Policy Overview