BCryptRegisterConfigChangeNotify(PRKEVENT) function

The BCryptRegisterConfigChangeNotify(PRKEVENT) function creates a kernel mode CNG configuration change event handler.

Syntax


NTSTATUS WINAPI BCryptRegisterConfigChangeNotify(
  _In_  PRKEVENT phEvent
);

Parameters

phEvent [in]

The address of a PRKEVENT variable that receives the pointer to the event dispatcher object. You use the kernel wait functions, such as KeWaitForSingleObject, to determine when the event has been signaled. The event is signaled when the CNG configuration has changed.

This handle must be passed to the BCryptUnregisterConfigChangeNotify(PRKEVENT) function to remove the event notification.

Return value

Returns a status code that indicates the success or failure of the function.

Possible return codes include, but are not limited to, the following.

Return codeDescription
STATUS_SUCCESS

The function was successful.

STATUS_INVALID_PARAMETER

The phEvent parameter is not valid.

STATUS_NO_MEMORY

A memory allocation failure occurred.

 

Remarks

The handle returned in the variable pointed to by the phEvent parameter will be signaled when a change to the CNG configuration occurs.

BCryptRegisterConfigChangeNotify(PRKEVENT) can be called only in kernel mode and at PASSIVE_LEVEL IRQL. Code executing in user mode must call BCryptRegisterConfigChangeNotify(HANDLE*).

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Bcrypt.h

Library

Bcrypt.lib

DLL

Bcrypt.dll

See also

BCryptUnregisterConfigChangeNotify(PRKEVENT)

 

 

Community Additions

ADD
Show:
© 2014 Microsoft