Steve Dower <steve.do...@python.org> added the comment:

The return type of a ctypes function is set by whoever is accessing it. If that 
is you, then you should do:

ctypes.windll.kernel32.VirtualAlloc.restype = ctypes.c_void_p

If it's not you, can you point out which code is getting this wrong? ctypes 
defaults to 32-bit int by default because that's what C does, and it has no 
knowledge of the function you're calling to do anything different.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue44051>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to