这是一个非常有趣的问题。在本机代码打印它的一些语句后,我得到了提到的异常。抛出的异常是:
hookThreadHandle is not NULL
hookThreadHandle is not NULL
Exception in thread "main" java.lang.UnsatisfiedLinkError: W:\elita\jnitesters\
workspace\c\MyHook\bin\Debug\MyHook.dll: A dynamic link library (DLL) initialization r
outine failed
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at keylogger.TestKeys.main(TestKeys.java:12)前两条语句hookThreadHandle is not NULL是dll的初始化失败的语句!为什么在找到dll并打印语句后抛出异常。 ?
什么是A dynamic link library (DLL) initialization routine failed异常?它意味着什么?
Java代码:
package keylogger;
public class