Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在努力在 Windows 中通过 Java/JNI 调用本机方法。基础没问题。我的问题是我不知道其中一种方法的确切方法签名。我有它的名字。
有谁知道从 Java 端加载的 DLL 中获取导出方法和签名的方法?
不,您从 JNI 命名约定中得到的只是导出函数的名称——即使在库不使用 RegisterNatives() 的情况下也是如此。您还知道前两个参数是指针。从这里,您可以尝试像对任何其他未记录的导出函数一样反汇编该函数。