This is the mail archive of the
mailing list for the Cygwin project.
Creating a separate console window via CreateProcess
- From: <turbowells at maine dot rr dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 12 Feb 2010 16:42:39 -0500
- Subject: Creating a separate console window via CreateProcess
- Sensitivity: Normal
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?
strcpy (buffer, "rexec testhost -l testuser testcommand");
memset (&start, 0, sizeof (start));
start.cb = sizeof (start);
start.dwFlags = STARTF_USESHOWWINDOW;
start.wShowWindow = SW_NORMAL;
memset (&child, 0, sizeof (child));
if (CreateProcess (NULL, buffer, NULL, NULL, FALSE, 0,
NULL, NULL, &start, &child))
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple