The function removes a registered request for transient notifications. It also closes the notification handle.
HRESULT WINAPI RegistryCloseNotification( HREGNOTIFY hNotify );
[in] Handle to a valid notification.
The following table shows the return values for this function.
|S_OK||Registered request for change notification is removed.|
|E_NOT_FOUND||Cannot find notification request in the list.|
Success indicates that the change notification request was removed. Failure does not cause any change.
RegistryCloseNotification searches for references to hNotify and removes them from the list. The memory associated with hNotify is freed. Pending notifications are lost.
Pocket PC: Windows Mobile 5.0 and later.
Smartphone: Windows Mobile 5.0 and later.
OS Versions: Windows CE 5.01 and later.
Link Library: Aygshell.lib
Send Feedback on this topic to the authors