[Python-checkins] r46911 - python/trunk/Lib/ctypes/wintypes.py
thomas.heller
python-checkins at python.org
Tue Jun 13 11:40:15 CEST 2006
Author: thomas.heller
Date: Tue Jun 13 11:40:14 2006
New Revision: 46911
Modified:
python/trunk/Lib/ctypes/wintypes.py
Log:
Add back WCHAR, UINT, DOUBLE, _LARGE_INTEGER, _ULARGE_INTEGER.
VARIANT_BOOL is a special _ctypes data type, not c_short.
Modified: python/trunk/Lib/ctypes/wintypes.py
==============================================================================
--- python/trunk/Lib/ctypes/wintypes.py (original)
+++ python/trunk/Lib/ctypes/wintypes.py Tue Jun 13 11:40:14 2006
@@ -9,16 +9,26 @@
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
More information about the Python-checkins
mailing list