| Platform SDK: Group Policy | 
Opens the default GPO for the computer and optionally loads the registry information.
HRESULT OpenLocalMachineGPO( DWORD dwFlags );
| Value | Meaning | 
|---|---|
| GPO_OPEN_LOAD_REGISTRY | Load the registry information. | 
| GPO_OPEN_READ_ONLY | Open the GPO in read-only mode. | 
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.
  Windows NT/2000: Requires Windows 2000.
  Header: Declared in Gpedit.h.
Group Policy Overview, Group Policy Interfaces, IGroupPolicyObject