BlaqICE

dpfpdd

Apr 6th, 2021
453
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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()
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×