Platform SDK: Group Policy

IGroupPolicyObject::Save

Saves the specified registry settings to disk and updates the revision number of the GPO.

HRESULT Save(
  BOOL bMachine
  BOOL bAdd,
  GUID *pGuidExtension,
  GUID *pGuid
);

Parameters

bMachine
Specifies the registry settings to be saved. If this parameter is TRUE, the computer settings are saved. Otherwise, the user settings are saved.
bAdd
Specifies whether this is an add or delete operation.
pGuidExtension
Specifies the GUID or unique name of the snap-in extension that will process policy. If the GPO is to be processed by the snap-in that processes .pol files, specify the REGISTRY_EXTENSION_GUID value.
pGuid
Specifies a GUID.

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