delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/02/12/17:11:22

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 12 Feb 2010 17:10:57 -0500
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Creating a separate console window via CreateProcess
Message-ID: <20100212221057.GA18315@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20100212214239 DOT HOJZ4 DOT 150765 DOT root AT hrndva-web25-z01>
MIME-Version: 1.0
In-Reply-To: <20100212214239.HOJZ4.150765.root@hrndva-web25-z01>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Fri, Feb 12, 2010 at 04:42:39PM -0500, turbowells AT maine DOT rr DOT com wrote:
>I am building a application using the latest tools available via the cygwin 
>setup program.  The application is supposed to open a separate DOS console 
>window, but all processing seems to occur within the context of the DOS console 
>window where I execute the program. 
> 
>I have cut the program down to the code that just does the process creation.  I 
>would want the following program to open a separate DOS window to ask me for a 
>password for the rexec command. 
> 
>I built the test program with: gcc -mno-cygwin  creprc.c -o creprc 
> 
>Could someone help me understand what I am doing wrong? 

You're asking the Cygwin list for help.  The whole point of Cygwin is to
avoid using the windows api.

However, to answer your specific question, possibly all you need is a
FreeConsole() in there somewhere.

If that doesn't help then please find a windows forum for your question
since it is off-topic here.

cgf

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019