Hello pythonerz, look, i have been working on ctypes again, and i realy don't know why i am having troubles with it.
This is code that crashes Ped (dev cert) and Python (selfsigned):
when i install devcert _ctypes i get import errors :-O omG, what is wroooong?
import ctypes as c
import _ctypes as x
to use keylock with ctypes we need two functions from avkon.dll
EnableWithoutNote() and DisableWithoutNote()
to acomplish this, we need first to know ordinals, in older versions of sdks we were able to export ordinals by command line function "nm" but now i tried on 5th and i got message "device not supported" so i wrote own library for func exporting.
avkondll=x.dlopen("avkon.dll") # we loaded avkon and its handler is in avkondll member
now we need something to prove success:
yea, everything is nice, BUT NOT WORKING.....crashing PED :-O why?
Hope somebody will know the answer and how to solve it