pointer of an unsigned inter in python

Viewed 200

I am working on python and ctypes of python.

I want to convert a given number to ctypes.c_uint32 and then refer to its pointer as follows:

d = 0
d_c_unit32 = (ctypes.c_uint32 * 1)(d)
pd_c = ctypes.POINTER(d_c_unit32)

but I have an error which say:

Detail TypeError: must be a ctypes type

would you please let me know where is the problem?

1 Answers
Related