Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from ctypes import *
- class DPFPDD_DEV_INFO(Structure): pass
- dpfpddDll = CDLL ("libs/x64/dpfpdd.dll")
- # Library initialization.
- dpfpdd_init = dpfpddDll.dpfpdd_init
- dpfpdd_init.restype = c_int
- dpfpdd_init()
- # Checking connected devices
- dpfpdd_query_devices = dpfpddDll.dpfpdd_query_devices
- dpfpdd_query_devices.restype = POINTER(DPFPDD_DEV_INFO)
- dpfpdd_query_devices.argtypes = [c_uint, POINTER(DPFPDD_DEV_INFO)]
- devices_p1 = c_uint(5)
- devices_p2 = POINTER(DPFPDD_DEV_INFO)
- devices = dpfpdd_query_devices(devices_p1, pointer(devices_p2))
- print(devices)
- # Existing the device
- dpfpdd_exit = dpfpddDll.dpfpdd_exit
- dpfpdd_exit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement