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),