This is the mail archive of the
mailing list for the Cygwin project.
Re: [ANNOUNCEMENT] Updated: run-1.1.11-1
-----BEGIN PGP SIGNED MESSAGE-----
According to Charles Wilson on 8/17/2009 12:42 PM:
> Okay, so here's another idea:
> And in configure_startupinfo():
> /* foo() is some magic mechanism for determining that the HANDLEs
> * returned by GetStdHandle() are from a console, and not redirected
> * or ptys of some sort.
See this thread on the gnulib list, which claims that you can use this
undocumented snippet to decide whether a HANDLE is a console:
> #define IsHandleConsole(h) (((long) (h) & 3) == 3)
Don't work too hard, make some time for fun as well!
Eric Blake email@example.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple