I have a c++ program where it became necessary to attach an icon to the taskbar and I use GetDesktopWindow() to get the CWnd. However, when the program is launched from within a service during the terminal service session. Instead of the remote session's taskbar, the icon get attached to the local machine's taskbar. Does anyone know how to solve this?