Issue #3612: Added some missing basic types in ctypes.wintypes.
This commit is contained in:
parent
ccfdcd0cb2
commit
838c79f472
|
@ -11,8 +11,10 @@ DWORD = c_ulong
|
||||||
|
|
||||||
WCHAR = c_wchar
|
WCHAR = c_wchar
|
||||||
UINT = c_uint
|
UINT = c_uint
|
||||||
|
INT = c_int
|
||||||
|
|
||||||
DOUBLE = c_double
|
DOUBLE = c_double
|
||||||
|
FLOAT = c_float
|
||||||
|
|
||||||
BOOLEAN = BYTE
|
BOOLEAN = BYTE
|
||||||
BOOL = c_long
|
BOOL = c_long
|
||||||
|
@ -26,6 +28,9 @@ class VARIANT_BOOL(_SimpleCData):
|
||||||
ULONG = c_ulong
|
ULONG = c_ulong
|
||||||
LONG = c_long
|
LONG = c_long
|
||||||
|
|
||||||
|
USHORT = c_ushort
|
||||||
|
SHORT = c_short
|
||||||
|
|
||||||
# in the windows header files, these are structures.
|
# in the windows header files, these are structures.
|
||||||
_LARGE_INTEGER = LARGE_INTEGER = c_longlong
|
_LARGE_INTEGER = LARGE_INTEGER = c_longlong
|
||||||
_ULARGE_INTEGER = ULARGE_INTEGER = c_ulonglong
|
_ULARGE_INTEGER = ULARGE_INTEGER = c_ulonglong
|
||||||
|
@ -33,6 +38,7 @@ _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
|
||||||
LPCSTR = LPSTR = c_char_p
|
LPCSTR = LPSTR = c_char_p
|
||||||
|
LPCVOID = LPVOID = c_void_p
|
||||||
|
|
||||||
# WPARAM is defined as UINT_PTR (unsigned type)
|
# WPARAM is defined as UINT_PTR (unsigned type)
|
||||||
# LPARAM is defined as LONG_PTR (signed type)
|
# LPARAM is defined as LONG_PTR (signed type)
|
||||||
|
@ -161,18 +167,19 @@ class WIN32_FIND_DATAW(Structure):
|
||||||
("cFileName", c_wchar * MAX_PATH),
|
("cFileName", c_wchar * MAX_PATH),
|
||||||
("cAlternateFileName", c_wchar * 14)]
|
("cAlternateFileName", c_wchar * 14)]
|
||||||
|
|
||||||
__all__ = ['ATOM', 'BOOL', 'BOOLEAN', 'BYTE', 'COLORREF', 'DOUBLE',
|
__all__ = ['ATOM', 'BOOL', 'BOOLEAN', 'BYTE', 'COLORREF', 'DOUBLE', 'DWORD',
|
||||||
'DWORD', 'FILETIME', 'HACCEL', 'HANDLE', 'HBITMAP', 'HBRUSH',
|
'FILETIME', 'FLOAT', 'HACCEL', 'HANDLE', 'HBITMAP', 'HBRUSH',
|
||||||
'HCOLORSPACE', 'HDC', 'HDESK', 'HDWP', 'HENHMETAFILE', 'HFONT',
|
'HCOLORSPACE', 'HDC', 'HDESK', 'HDWP', 'HENHMETAFILE', 'HFONT',
|
||||||
'HGDIOBJ', 'HGLOBAL', 'HHOOK', 'HICON', 'HINSTANCE', 'HKEY',
|
'HGDIOBJ', 'HGLOBAL', 'HHOOK', 'HICON', 'HINSTANCE', 'HKEY',
|
||||||
'HKL', 'HLOCAL', 'HMENU', 'HMETAFILE', 'HMODULE', 'HMONITOR',
|
'HKL', 'HLOCAL', 'HMENU', 'HMETAFILE', 'HMODULE', 'HMONITOR',
|
||||||
'HPALETTE', 'HPEN', 'HRGN', 'HRSRC', 'HSTR', 'HTASK', 'HWINSTA',
|
'HPALETTE', 'HPEN', 'HRGN', 'HRSRC', 'HSTR', 'HTASK', 'HWINSTA',
|
||||||
'HWND', 'LANGID', 'LARGE_INTEGER', 'LCID', 'LCTYPE', 'LGRPID',
|
'HWND', 'INT', 'LANGID', 'LARGE_INTEGER', 'LCID', 'LCTYPE',
|
||||||
'LONG', 'LPARAM', 'LPCOLESTR', 'LPCSTR', 'LPCWSTR', 'LPOLESTR',
|
'LGRPID', 'LONG', 'LPARAM', 'LPCOLESTR', 'LPCSTR', 'LPCVOID',
|
||||||
'LPSTR', 'LPWSTR', 'MAX_PATH', 'MSG', 'OLESTR', 'POINT',
|
'LPCWSTR', 'LPOLESTR', 'LPSTR', 'LPVOID', 'LPWSTR', 'MAX_PATH',
|
||||||
'POINTL', 'RECT', 'RECTL', 'RGB', 'SC_HANDLE',
|
'MSG', 'OLESTR', 'POINT', 'POINTL', 'RECT', 'RECTL', 'RGB',
|
||||||
'SERVICE_STATUS_HANDLE', 'SIZE', 'SIZEL', 'SMALL_RECT', 'UINT',
|
'SC_HANDLE', 'SERVICE_STATUS_HANDLE', 'SHORT', 'SIZE', 'SIZEL',
|
||||||
'ULARGE_INTEGER', 'ULONG', 'VARIANT_BOOL', 'WCHAR',
|
'SMALL_RECT', 'UINT', 'ULARGE_INTEGER', 'ULONG', 'USHORT',
|
||||||
'WIN32_FIND_DATAA', 'WIN32_FIND_DATAW', 'WORD', 'WPARAM', '_COORD',
|
'VARIANT_BOOL', 'WCHAR', 'WIN32_FIND_DATAA', 'WIN32_FIND_DATAW',
|
||||||
'_FILETIME', '_LARGE_INTEGER', '_POINTL', '_RECTL', '_SMALL_RECT',
|
'WORD', 'WPARAM', '_COORD', '_FILETIME', '_LARGE_INTEGER',
|
||||||
'_ULARGE_INTEGER', 'tagMSG', 'tagPOINT', 'tagRECT', 'tagSIZE']
|
'_POINTL', '_RECTL', '_SMALL_RECT', '_ULARGE_INTEGER', 'tagMSG',
|
||||||
|
'tagPOINT', 'tagRECT', 'tagSIZE']
|
||||||
|
|
|
@ -54,6 +54,8 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #3612: Added some missing basic types in ctypes.wintypes.
|
||||||
|
|
||||||
- The methods ``is_in_tuple()``, ``is_vararg()``, and ``is_keywordarg()`` of
|
- The methods ``is_in_tuple()``, ``is_vararg()``, and ``is_keywordarg()`` of
|
||||||
symtable.Symbol have been deprecated for removal in 3.0 and the next release.
|
symtable.Symbol have been deprecated for removal in 3.0 and the next release.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue