Window shown in alt tab menu even included tool window style
I am working with wpf application that create a transparent, topmost window. I also set tool window style for my window by using: SetWindowLong(hwnd, GWL_EXSTYLE, extendedStyle | WS_EX_TOOLWINDOW). It is ok during application running but when I go to Task Manager (Details tab) and "End task" the explorer.exe then start it again by clicking run new task, my application's windows will be shown in alt tab area even it still include ToolWindow style normally (I checked by Spy++).
One more important note that I cannot reproduce that issue if run application directly but if I use a service to start the application with UI access token (SetTokenInformation(hUserToken, TOKEN_INFORMATION_CLASS.TokenUIAccess, ref dwUIAccess, sizeof(uint))) . I can reproduce the issue. Can anyone help me to explain the reason?