[muscle] Re: VS: Re: daemon

  • From: "Matt Emson" <memsom@xxxxxxxxxxxxxxxx>
  • To: <muscle@xxxxxxxxxxxxx>
  • Date: Fri, 6 May 2005 17:45:34 +0100

No, the problem is probably this: If you compile the muscled as a command
line (console) app, most windows compilers will make it so that you will
then open a command prompt when it is run. What needs to happen is that the
code should be compiled as a windows GUI app and an option to open the
console should be added to the command line...

The wincon.h header has the following routine:

BOOL AllocConsole(VOID)

which is part of  kernel32.dll.

What also needs to be taken into account is that the standard I/O has to go
somewhere, otherwise the muscled might die when any output to the console
happens when one does not exist.


----- Original Message -----
From: "VANHERP Wim" <Wim.VANHERP@xxxxxx>
To: <muscle@xxxxxxxxxxxxx>
Sent: Friday, May 06, 2005 5:14 PM
Subject: [muscle] Re: VS: Re: daemon

An easier way could be to hide the command box in the windows version.
There is a function ShowWindow(long hWnd, long nCmdShow)that resides in
user32.DLL that can do this thing.

-----Oorspronkelijk bericht-----
Van: muscle-bounce@xxxxxxxxxxxxx [mailto:muscle-bounce@xxxxxxxxxxxxx]
Namens Jeremy Friesner
Verzonden: donderdag 5 mei 2005 21:13
Aan: muscle@xxxxxxxxxxxxx
Onderwerp: [muscle] Re: VS: Re: daemon

On Thursday 05 May 2005 10:21, Mika Lindqvist wrote:
> In my machine it doesn't return to shell when I run muscled...

Right you are -- I see that that is the case on my Windows machine also.
imagine it is because muscled is compiled as a DOS program instead of a=20=

Windows program?  If that is the case, then it might be possible to
this behaviour by changing the compiler settings so that muscled is
as a Windows program (albeit one that never actually opens any Windows).

OTOH, if anyone knows how to make muscle's BecomeDaemonProcess() and/or=20=

SpawnDaemonProcess() functions work as documented under Windows, I would
happy to include that code for the next release!


*** Disclaimer ***

Deze e-mail, met eventuele bijlagen, is alleen bestemd voor de persoon of=
 organisatie aan wie hij gericht is en, in voorkomend geval, alleen voor =
het daarin opgegeven doel of gebruik. Hij kan vertrouwelijke informatie b=
evatten en/of persoonlijke standpunten die niet noodzakelijk met die van =
de VRT stroken. Elk gebruik van deze informatie (zoals bewerken, doorstur=
en, geheel of gedeeltelijk reproduceren of verspreiden in welke vorm ook)=
 door anderen dan de geadresseerde, is verboden. Hebt U deze e-mail per v=
ergissing ontvangen, meld dat dan a.u.b. aan de VRT en wis de e-mail.

Other related posts: