I use ctypes to call a dll to read the contents of the storage area.But it returns an unsigned char pointer, I want to get the contents of the pointer.How do I do it?
from ctypes import *
c = WinDLL("FT_ET99_API.dll")
hwnd = c_void_p()
c.et_OpenToken(byref(hwnd), c_char_p('53E00FD8'), c_int(1))
c.et_Verify(hwnd, c_int(0), c_char_p('35316D69696C616E'))
f = c.et_Read
f.argtypes = c_void_p, c_int, c_int, POINTER(c_char_p)
f.restype = None
txt = c_char_p()
f(hwnd, 1, 34, byref(txt))
(What should I do next?)
et_Read(
ET_HANDLE hHandle(in),
WORD offset(in),
int Len(in),
unsigned char* pucReadBuf(out)
)