Skip to content

Latest commit

 

History

History
19 lines (19 loc) · 626 Bytes

File metadata and controls

19 lines (19 loc) · 626 Bytes

模板

ali = CDLL('ali.dll')
ali_aes_decrypt_key128 = ali.ali_aes_decrypt_key128
ali_aes_decrypt_key128.argtypes = [c_char_p, POINTER(c_uint)]
ali_aes_decrypt_key128.restype = None
ali_aes_decrypt = ali.ali_aes_decrypt
ali_aes_decrypt.argtypes = [c_char_p, POINTER(c_uint),POINTER(c_uint)]
ali_aes_decrypt.restype = c_int

传入参数

从参数读取返回值1

i = c_int()
c_func(byref(i))
print(i.value)

参考