Platform SDK: Group Policy

IGroupPolicyObject::OpenRemoteMachineGPO

Opens the default GPO for the specified remote computer and optionally loads the registry information.

HRESULT OpenRemoteMachineGPO(
  LPOLESTR pszComputerName,
  DWORD dwFlags
);

Parameters

pszComputerName
Specifies the name of the computer. The format of the name is \\ComputerName.
dwFlags
Specifies whether the registry information should be loaded. This parameter can be one of the following values.
Value Meaning
GPO_OPEN_LOAD_REGISTRY Load the registry information.
GPO_OPEN_READ_ONLY Open the GPO in read-only mode.

Return Values

If the function succeeds, the return value is S_OK. 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.

See Also

Group Policy Overview, Group Policy Interfaces, IGroupPolicyObject