| > When I 'autostart' a server in W95 it pops open a MSDOS window
> and outputs to it.
>
> Is there any way to change this behaviour?
While this can't solve the problem of a [MS-DOS] console window
being created in the first place, for yuks you may want to
try calling FreeConsole(). In theory this should make the
console window go away once your server's main program starts
running.
Also I'm guessing that your server is written as a "console"
application (ie. has a function named "main")? It appears
Windows 95 ignores the meaning of the DETACHED_PROCESS flag to
CreateProcess, and by default console apps have a console window
created for them if their parent doesn't have one. You may
want to consider making your application a windows application
instead of a console one. Then as long as you don't call
ShowWindow() your "window" will never be visible. At least
in theory, I personally haven't tried making an ObjectBroker
server a windows app, so no promises...
|