Platform SDK: Group Policy

IGPEInformation::PolicyChanged

Informs the Group Policy snap-in that policy settings have been changed.

HRESULT PolicyChanged( 
  BOOL bMachine,
  BOOL bAdd,
  GUID *pGuidExtension,
  GUID *pGuidSnapin
 );

Parameters

bMachine
Specifies whether computer or user policy has changed.
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.
pGuidSnapin
Specifies the GUID or unique name of the snap-in extension making this call.

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.

Remarks

An extension must call this method every time it makes a change to a GPO.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Header: Declared in Gpedit.h.

See Also

Group Policy Overview, Group Policy Interfaces, IGPEInformation