【发布时间】:2011-12-01 09:47:28
【问题描述】:
这是来自 MSDN 的 SHChangeNotify 函数的语法:
void SHChangeNotify(
LONG wEventId,
UINT uFlags,
__in_opt LPCVOID dwItem1,
__in_opt LPCVOID dwItem2
);
我必须在 Java Native Access [JNA] 中编写它的 Java 对应物,但这个声明似乎是错误的:
public interface Shell32 extends com.sun.jna.platform.win32.Shell32 {
public Shell32 INSTANCE = (Shell32) Native.loadLibrary(Shell32.class);
void SHChangeNotify(long wEventId, int uFlags, Pointer dwItem1, Pointer dwItem2);
}
我遇到了以下异常:
线程“主”java.lang.UnsatisfiedLinkError 中的异常:错误 查找函数“SHChangeNotify”
知道如何正确写吗?
【问题讨论】: