HWND hwndTaskBar = ::FindWindow("Shell_TrayWnd", NULL); HWND hwndTray = ::FindWindowEx(hwndTaskBar, NULL, "TrayNotifyWnd", NULL);