Eryk Sun added the comment:
A function that returns a pointer needs an explicit `restype` set. A function
parameter that's a pointer generally requires `argtypes` to be set. For example:
_testdll.GetPointer.restype = ctypes.c_void_p
_testdll.SetPointer.argtypes = (ctypes.c_void_p,)
U
New submission from Taekab Park :
It seems like ctypes code makes truncated pointer values in x64(access
violations)
windows10 x64
options : __cdecl(/Gd)
tested : python(x64) 3.2, 3.4, 3.6, 3.9
dll build with vc++2015
The test code is simple.
Simply loaded TestDll and called function and c