This function sends a message to the system to add, modify, or delete an icon from the taskbar status area.
At a Glance
Header file: | Shellapi.h |
Windows CE versions: | 1.0 and later |
Syntax
WINSHELLAPI BOOL WINAPI Shell_NotifyIcon(DWORD dwMessage, PNOTIFYICONDATA pnid);
Parameters
dwMessage
[in] Specifies the message value to send. It is one of these values:
Value | Description |
NIM_ADD | Adds an icon to the status area. |
NIM_DELETE | Deletes an icon from the status area. |
NIM_MODIFY | Modifies an icon in the status area. |
pnid
[in] Pointer to a NOTIFYICONDATA structure. The content of the structure depends on the value of dwMessage.
Return Values
Nonzero indicates success. Zero indicates failure.