简体   繁体   中英

Getting a Method Signature from a Native method, from Java

I am working to call native methods via Java/JNI, in Windows. The basics are fine. My problem is that I do not know the exact method signature of one of the methods. I have its name.

Does anyone know of a way to get the exported methods and signatures from a loaded DLL from the Java side?

No, all you get from JNI naming convention is the name of exported function - and even this on condition that the library is not using RegisterNatives(). You also know that the first two parameters are pointers. From here, you can try to disassemble the function as you would for any other undocumented exported function.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM