may be that you are using the wrong application pointer in your Shell_NotifyIcon API. May also be that your datat types are mixed up. We need more code, especially the code where you obtain the Window's handle