Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
fdbebb65
Commit
fdbebb65
authored
Jun 13, 2006
by
Thomas Heller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add back WCHAR, UINT, DOUBLE, _LARGE_INTEGER, _ULARGE_INTEGER.
VARIANT_BOOL is a special _ctypes data type, not c_short.
parent
a7e823fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
Lib/ctypes/wintypes.py
Lib/ctypes/wintypes.py
+13
-3
No files found.
Lib/ctypes/wintypes.py
View file @
fdbebb65
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment