ProcessGroupPolicyCompletedEx function

The ProcessGroupPolicyCompletedEx function notifies the system that the specified policy extension has finished applying policy. The function also reports the status of Resultant Set of Policy (RSoP) logging.

Syntax

USERENVAPI DWORD ProcessGroupPolicyCompletedEx(
  REFGPEXTENSIONID      extensionId,
  ASYNCCOMPLETIONHANDLE pAsyncHandle,
  DWORD                 dwStatus,
  HRESULT               RsopStatus
);

Parameters

extensionId

Specifies the unique GUID that identifies the policy extension.

pAsyncHandle

Asynchronous completion handle. This handle is passed to the ProcessGroupPolicyEx callback function.

dwStatus

Specifies the completion status of asynchronous processing of policy.

RsopStatus

Specifies an HRESULT return code that indicates the status of RSoP logging.

Return Value

If the function succeeds, the return value is ERROR_SUCCESS. Otherwise, the function returns one of the system error codes. For a complete list of error codes, see System Error Codes or the header file WinError.h.

Requirements

   
Windows version Windows Vista Windows Server 2008
Target Platform Windows
Header userenv.h
Library Userenv.lib
DLL Userenv.dll

See Also

Group Policy Functions

Group Policy Overview

ProcessGroupPolicy

ProcessGroupPolicyCompleted

ProcessGroupPolicyEx