Advertisement
BlaqICE

dpfpdd

Apr 6th, 2021
974
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.64 KB | None | 0 0
  1. from ctypes import *
  2.  
  3.  
  4. class DPFPDD_DEV_INFO(Structure): pass
  5.  
  6.  
  7. dpfpddDll = CDLL ("libs/x64/dpfpdd.dll")
  8.  
  9. # Library initialization.
  10. dpfpdd_init = dpfpddDll.dpfpdd_init
  11. dpfpdd_init.restype = c_int
  12. dpfpdd_init()
  13.  
  14. # Checking connected devices
  15. dpfpdd_query_devices = dpfpddDll.dpfpdd_query_devices
  16. dpfpdd_query_devices.restype = POINTER(DPFPDD_DEV_INFO)
  17. dpfpdd_query_devices.argtypes = [c_uint, POINTER(DPFPDD_DEV_INFO)]
  18.  
  19. devices_p1 = c_uint(5)
  20. devices_p2 = POINTER(DPFPDD_DEV_INFO)
  21. devices = dpfpdd_query_devices(devices_p1, pointer(devices_p2))
  22. print(devices)
  23.  
  24. # Existing the device
  25. dpfpdd_exit = dpfpddDll.dpfpdd_exit
  26. dpfpdd_exit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement