Share via


RegistryCloseNotification (Windows Embedded CE 6.0)

1/6/2010

The function removes a registered request for transient notifications. It also closes the notification handle.

Syntax

HRESULT WINAPI RegistryCloseNotification( 
  HREGNOTIFY hNotify
);

Parameters

  • hNotify
    [in] Handle to a valid notification.

Return Value

The following table shows the return values for this function.

Value Description

S_OK

Registered request for change notification is removed.

E_INVALIDARG

Invalid hNotify.

E_NOT_FOUND

Cannot find notification request in the list.

Remarks

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.

Requirements

Header regext.h
Library aygshell.lib
Windows Embedded CE Windows Embedded CE 6.0 and later

See Also

Reference

State and Notifications Broker Functions
State and Notifications Broker Reference

Other Resources

State and Notifications Broker