代码: static interface Kernel32 extends Library { public static Kernel32 INSTANCE = (Kernel32) Native.loadLibrary("kernel32", Kernel32.class); public int GetProcessId(Long hProcess); } try { Field f = p.getClass().getDeclaredField("handle"); f.setAccessible(true); long pid = Kern