Platform SDK: Group Policy

BrowseForGPO

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

HRESULT BrowseForGPO(
  LPGPOBROWSEINFO lpBrowseInfo
);

Parameters

lpBrowseInfo
[in/out] Pointer to a GPOBROWSEINFO structure that contains information used to initialize the dialog box. When BrowseForGPO returns, this structure contains information about the user's actions.

Return Values

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 Platform SDK header file WinError.h.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Header: Declared in Gpedit.h.
  Library: Use Userenv.lib.

See Also

Group Policy Overview, Group Policy Functions, GPOBROWSEINFO