From fdbebb65af31809d346592f8dbb3883ca0b7c235 Mon Sep 17 00:00:00 2001 From: Thomas Heller Date: Tue, 13 Jun 2006 09:40:14 +0000 Subject: [PATCH] Add back WCHAR, UINT, DOUBLE, _LARGE_INTEGER, _ULARGE_INTEGER. VARIANT_BOOL is a special _ctypes data type, not c_short. --- Lib/ctypes/wintypes.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Lib/ctypes/wintypes.py b/Lib/ctypes/wintypes.py index 693d16d876f..bd7838862dc 100644 --- a/Lib/ctypes/wintypes.py +++ b/Lib/ctypes/wintypes.py @@ -9,16 +9,26 @@ BYTE = c_byte WORD = c_ushort DWORD = c_ulong +WCHAR = c_wchar +UINT = c_uint + +DOUBLE = c_double + BOOLEAN = BYTE 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 LONG = c_long # in the windows header files, these are structures. -LARGE_INTEGER = c_longlong -ULARGE_INTEGER = c_ulonglong +_LARGE_INTEGER = LARGE_INTEGER = c_longlong +_ULARGE_INTEGER = ULARGE_INTEGER = c_ulonglong LPCOLESTR = LPOLESTR = OLESTR = c_wchar_p LPCWSTR = LPWSTR = c_wchar_p