AuthzRegisterCapChangeNotification function

The AuthzRegisterCapChangeNotification function registers a CAP update notification callback.

Syntax

AUTHZAPI BOOL AuthzRegisterCapChangeNotification(
  PAUTHZ_CAP_CHANGE_SUBSCRIPTION_HANDLE phCapChangeSubscription,
  LPTHREAD_START_ROUTINE                pfnCapChangeCallback,
  PVOID                                 pCallbackContext
);

Parameters

phCapChangeSubscription

Pointer to the CAP change notification subscription handle. When you have finished using the handle, unsubscribe by passing this parameter to the AuthzUnregisterCapChangeNotification function.

pfnCapChangeCallback

The CAP change notification callback function.

pCallbackContext

The context of the user to be passed to the callback function.

Return value

If the function succeeds, it returns TRUE.

If the function fails, it returns FALSE. To get extended error information, call GetLastError.

Remarks

This function is intended for applications that manually manage CAP usage to get notified of CAP changes in the system.

Requirements

   
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header authz.h
Library Authz.lib
DLL Authz.dll

See also

AuthzUnregisterCapChangeNotification

Central Access Policies

How AccessCheck Works