BCryptRegisterConfigChangeNotify(PRKEVENT) function
[BCryptRegisterConfigChangeNotify is deprecated beginning with Windows 10.]
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 code | Description |
|---|---|
|
The function was successful. |
|
The phEvent parameter is not valid. |
|
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 |
|
|
Library |
|
|
DLL |
|
See also