Moderator: Andres Valverde
HANDLE hInput = GetStdHandle( STD_INPUT_HANDLE );
DWORD dwConsoleMode;
bool isInputPipe = false;
if( ! GetConsoleMode( hInput, &dwConsoleMode ) ) {
isInputPipe = PeekNamedPipe( hInput, 0, 0, 0, &dwAvailable, 0 ) != 0;
}
Return to Programming and Technical Discussions
Users browsing this forum: No registered users and 5 guests