Skip to content

Commit 69555db

Browse files
committed
enthought#31: Improved 64-bit compatibility by specifying argtypes for GetMessage.
1 parent 3f99d4c commit 69555db

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

comtypes/messageloop.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1+
import ctypes
12
from ctypes import WinDLL, byref, WinError
23
from ctypes.wintypes import MSG
34
_user32 = WinDLL("user32")
45

56
GetMessage = _user32.GetMessageA
7+
GetMessage.argtypes = [
8+
ctypes.c_void_p,
9+
ctypes.c_void_p,
10+
ctypes.c_uint,
11+
ctypes.c_uint,
12+
]
613
TranslateMessage = _user32.TranslateMessage
714
DispatchMessage = _user32.DispatchMessageA
815

0 commit comments

Comments
 (0)