java - create a global reference in JNA -
the native library want use have method this:
extern unsigned long write(void);
what going write, however, need defined in several global variable:
short int addr; //the starting address write to; short int length; //the length of writing; void * data; //the data write;
i know in jna, nativelibray have method load global reference defined in native library, seems not needed here. need declare above global variables , write them, write() method can work properly.
any suggestion on how implement in jna?
thanks.
so many game hackers unwilling dirty details.
nativelibrary
provides access addresses of global variables exported shared library.
nativelibrary lib = nativelibray.getinstance("mylib"); pointer paddr = lib.getglobalvariableaddress("addr"); paddr.setint(0, 1234);
Comments
Post a Comment