Add back WCHAR, UINT, DOUBLE, _LARGE_INTEGER, _ULARGE_INTEGER.

VARIANT_BOOL is a special _ctypes data type, not c_short.
This commit is contained in:
Thomas Heller 2006-06-13 09:40:14 +00:00
parent a7e823fd2c
commit fdbebb65af
1 changed files with 13 additions and 3 deletions

View File

@ -9,16 +9,26 @@ BYTE = c_byte
WORD = c_ushort WORD = c_ushort
DWORD = c_ulong DWORD = c_ulong
WCHAR = c_wchar
UINT = c_uint
DOUBLE = c_double
BOOLEAN = BYTE BOOLEAN = BYTE
BOOL = c_long BOOL = c_long
VARIANT_BOOL = c_short
from ctypes import _SimpleCData
class VARIANT_BOOL(_SimpleCData):
_type_ = "v"
def __repr__(self):
return "%s(%r)" % (self.__class__.__name__, self.value)
ULONG = c_ulong ULONG = c_ulong
LONG = c_long LONG = c_long
# in the windows header files, these are structures. # in the windows header files, these are structures.
LARGE_INTEGER = c_longlong _LARGE_INTEGER = LARGE_INTEGER = c_longlong
ULARGE_INTEGER = c_ulonglong _ULARGE_INTEGER = ULARGE_INTEGER = c_ulonglong
LPCOLESTR = LPOLESTR = OLESTR = c_wchar_p LPCOLESTR = LPOLESTR = OLESTR = c_wchar_p
LPCWSTR = LPWSTR = c_wchar_p LPCWSTR = LPWSTR = c_wchar_p