The solutions you propose are valid indeed for windows
created by my own application. But in my case, I'm
spawning a Win32 application, which poses some different
challenge. But you may have pointed me in the right
direction: according to the documentation, the
ITaskBarList interface allows me to manipulate the taskbar
buttons so I can hide the application there. What I'm
really looking for is to keep the spawned application out
of the tasklist altogether. Thanks for your advise.
>> To be clear: I'm not trying to keep a dialog that my
>> application creates off the taskbar. My question
>> a spawned Win32 application (I only own the executable)
>> that performs a background task for an application I'm
>> writing. I launch the Win32 application using
>> (), but that don't seem to allow me hiding it. So here's
>> my question: does anyone know how to keep a spawned
>> application from the taskbar?
>Is it a console or windowed application?
>If it is a console mode application, and you run on
NT/2K/XP/2K+3 try using
>the CREATE_NO_WINDOW flag with CreateProcess(). Another
option is redirect
>the standard input and output devices to pipes but it is
>If it is a windowed application, then you can give the
main window the
>WS_EX_TOOLWINDOW extended style bit. This has the side
effect making the
>caption somewhat smaller. If you don't like that you can
waste a window.
>That is, create an unowned main window and hide it.
Create your real main
>window specify this hidden window as owner.
>If you are familiar with COM, another option is to use
>interface exposed by the shell. I've not used it but I
believe it is
>available on 98/Me/2000/XP/2K+3.