423
418
from ctypes.wintypes import DWORD, LPCSTR, LPCWSTR
424
419
LPSECURITY_ATTRIBUTES = ctypes.c_void_p # used as NULL no need to declare
425
420
HANDLE = ctypes.c_int # rather than unsigned as in ctypes.wintypes
435
423
# CreateFile <http://msdn.microsoft.com/en-us/library/aa363858.aspx>
436
424
_CreateFile = ctypes.WINFUNCTYPE(
441
429
LPSECURITY_ATTRIBUTES, # lpSecurityAttributes