This is the mail archive of the
mailing list for the Cygwin project.
Re: [ANNOUNCEMENT] Updated: run-1.1.11-1
Christopher Faylor wrote:
> Is there something wrong with Cygwin's code for determining if a handle is a
> if (GetConsoleScreenBufferInfo (handle, &buf))
> else if (GetNumberOfConsoleInputEvents (handle, (DWORD *) &buf))
> It's been working pretty well for centuries.
Can't see why it wouldn't be ok. Both those functions return zero (and
GetLastError() == STATUS_INVALID_HANDLE) if what you pass isn't a console handle.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple