WINSHELLAPI BOOL WINAPI Shell_NotifyIcon(
    DWORD dwMessage, 
    PNOTIFYICONDATA pnid
); Sends a message to the system to add, modify, or delete an icon from the taskbar status area. Returns nonzero if successful, or zero otherwise. 
dwMessage 
Message value to send. This parameter can be one of these values: 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 
Address of a NOTIFYICONDATA structure. The content of the structure depends on the value of dwMessage.