BCryptUnregisterConfigChangeNotify

The BCryptUnregisterConfigChangeNotify(PRKEVENT) function removes a kernel mode CNG configuration change event handler that was created by using the BCryptRegisterConfigChangeNotify(PRKEVENT) function.

Syntax

NTSTATUS BCryptUnregisterConfigChangeNotify(
  HANDLE hEvent
);

Parameters

hEvent

The pointer to the event dispatcher object to remove. This is the pointer that was obtained by using the BCryptRegisterConfigChangeNotify(PRKEVENT) function.

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
STATUS_SUCCESS
The function was successful.
STATUS_INVALID_PARAMETER
The hEvent parameter is not valid.
STATUS_NO_MEMORY
A memory allocation failure occurred.

Remarks

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

Requirements

Requirement Value
Minimum supported client Windows 10 Build 20348
Minimum supported server Windows 10 Build 20348
Header bcrypt.h

See also

BCryptRegisterConfigChangeNotify(PRKEVENT)