If you play online games, the server is private, runs from time to time and can handle only few gamers - this is for you.
This program tries to connect to the server with a constant intervall and takes actions if it succeeds - play a sound / execute a program.
It uses low level internet apis - socket, connect, send, and so on. The socket is in asynchronous mode, main window receives notifications from the socket in custom WM_SOCKET message.
Also uses tray icon to work in the background, and is able to re-insert the tray icon after explorer has been restarted - WM_TASKBARCREATED.
Has option to start with system - uses COM class IShellLink to create a shortcut in Start Menu.
Is writen as unicode version and uses a PickIconDlg function from Windows XP, to let the user select a custom tray icon.
Just downloaded and Ill try it. Anyway, seems your code will be usefull for other projects I have. Thanks in advance :)