From 184b9735b5d5a938d3f80036f2fd50ebef19c70c Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Mon, 11 Jan 2021 13:41:48 -0500 Subject: [PATCH] another constant we can get from pywin32 --- src/allmydata/windows/fixups.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/allmydata/windows/fixups.py b/src/allmydata/windows/fixups.py index 31d7931dd..a3ce24a6d 100644 --- a/src/allmydata/windows/fixups.py +++ b/src/allmydata/windows/fixups.py @@ -23,8 +23,12 @@ from win32con import ( from win32file import ( INVALID_HANDLE_VALUE, + FILE_TYPE_CHAR, ) +# This one not exposed by pywin32 as far as I can tell. +FILE_TYPE_REMOTE = 0x8000 + # # BOOL WINAPI WriteConsoleW(HANDLE hOutput, LPWSTR lpBuffer, DWORD nChars, # LPDWORD lpCharsWritten, LPVOID lpReserved); @@ -121,8 +125,6 @@ def initialize(): use_last_error=True )(("GetFileType", windll.kernel32)) - FILE_TYPE_CHAR = 0x0002 - FILE_TYPE_REMOTE = 0x8000 GetConsoleMode = WINFUNCTYPE( BOOL, HANDLE, POINTER(DWORD),