public final class Kernel32Direct {
public static native boolean WriteProcessMemory(Pointer process, long address, Memory memory, int size, int written);
public static native boolean ReadProcessMemory(Pointer process, long address, Memory memory, int size, int written);
public static native Pointer OpenProcess(int desired, boolean inherit, int pid);
public static native WinNT.HANDLE CreateToolhelp32Snapshot(WinDef.DWORD var1, WinDef.DWORD var2);
public static native boolean Process32Next(WinNT.HANDLE var1, Tlhelp32.PROCESSENTRY32 var2);
public static native boolean CloseHandle(WinNT.HANDLE var1);
static {
Native.register(NativeLibrary.getInstance("Kernel32", W32APIOptions.UNICODE_OPTIONS));
}
}