From: Jacek Caban Subject: Re: [RFC PATCH] conhost: Register as a system process. Message-Id: Date: Wed, 4 Nov 2020 18:04:08 +0100 In-Reply-To: <94fd1aff-a513-d705-de28-40426880fbb4@googlemail.com> References: <94fd1aff-a513-d705-de28-40426880fbb4@googlemail.com> Hi Torge, On 11/2/20 10:34 PM, Torge Matthies wrote: > I understand that using Wine-internal functions is not supported, however > the desired behavior seems hard if not impossible to implement otherwise. You should be able to achieve that by implementing your application as a Windows service. For a quick workaround would be to call FreeConsole() in your application. This way console will become unused and conhost will exit earlier. If you wrap execution with a script, you could also make sure that none of std handles (in, out, err) is a terminal. In this case conhost will not be created in the first place. Jacek