mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +00:00
14 lines
250 B
C
14 lines
250 B
C
|
/*
|
||
|
* Determine whether a Windows HANDLE points at a console device.
|
||
|
*/
|
||
|
|
||
|
#include "putty.h"
|
||
|
|
||
|
bool is_console_handle(HANDLE handle)
|
||
|
{
|
||
|
DWORD ignored_output;
|
||
|
if (GetConsoleMode(handle, &ignored_output))
|
||
|
return true;
|
||
|
return false;
|
||
|
}
|