INotificationCB :: Notify

This method of the INotificationCB interface receives information about (and changes to) items in a tray’s notification area.

Declaration

HRESULT INotificationCB :: Notify (ULONG Event, NOTIFYITEM *Item);

Parameters

The Event argument tells whether the item has been added, modified or deleted:

0 added
1 modified
2 deleted

The Item argument provides the address of a structure that describes the item. The NOTIFYITEM structure is described separately.

Return Value

The method returns zero for success, else an error code.

Behaviour

This method is to be implemented in code that wants to know about notification-area items. To set it up, pass the INotificationCB interface to the RegisterCallback method of the notification area’s ITrayNotify interface.

EXPLORER ignores the return value.