This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from msvcrt import get_osfhandle | |
from ctypes.wintypes import * | |
from ctypes import * | |
import os | |
import struct | |
if sizeof(c_ulong) == sizeof(c_void_p): | |
ULONG_PTR = c_ulong | |
elif sizeof(c_ulonglong) == sizeof(c_void_p): |