Sender: tim AT picard DOT skynet DOT be Message-ID: <3AF6B3B5.5179E6B4@falconsoft.be> Date: Mon, 07 May 2001 16:39:49 +0200 From: Tim Van Holder Organization: Falcon Software NV X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.16-3 i686) X-Accept-Language: en, nl-BE, nl MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: program without window References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com Eli Zaretskii wrote: > > On Mon, 7 May 2001, Tim Van Holder wrote: > > > > It's true that you can put "Minimized" in the "Run" property, but that > > > still doesn't prevent the window from being maximized by the user, > > > which is what I believe Michelle was looking for. > > > > Maybe you could use the VXD call mechanism to call a Windows API > > function to either disable maximization or hide the window (which I > > expect would be equally acceptable). > > It's possible that this could be done, but I've never seen a description > how. And the back-door of calling VxDs is a moving target anyway, and is > also notoriously undocumented. So... > > As for hiding the window--what exactly did you mean by that? Exactly what it says: hiding the window (cfr. Form.Visible = false in VB). Using the API, it should be possible to get the window handle of the DOS box and hide it, so it no longer shows up in task bar or ALT-TAB. That way, the only way to kill it would be Ctrl-Alt-Delete (it _should_ still be in that list), but it would not bother the user by its presence. Since I suspect the program in question is some sort of daemon/service, this seems acceptable. -- Tim Van Holder - Falcon Software N.V. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= This message was posted using plain text. I do not endorse any products or services that may be hyperlinked to this message.