View Javadoc

1   /**
2    * 
3    */
4   package org.sirius.server.win32.core;
5   
6   import com.sun.jna.Native;
7   import com.sun.jna.Pointer;
8   import com.sun.jna.platform.win32.Kernel32;
9   import com.sun.jna.win32.W32APIOptions;
10  
11  /**
12   * @author Myk Kolisnyk
13   * 
14   */
15  public interface Kernel32Ext extends Kernel32 {
16  
17      Kernel32Ext INSTANCE = (Kernel32Ext) Native.loadLibrary(
18                                          "kernel32.dll", Kernel32Ext.class,
19                                          W32APIOptions.DEFAULT_OPTIONS);
20  
21      Pointer VirtualAllocEx(HANDLE hProcess, Pointer lpAddress, int dwSize,
22              DWORD flAllocationType, DWORD flProtect);
23  
24      boolean VirtualFreeEx(HANDLE hProcess, Pointer lpAddress, int dwSize,
25              DWORD dwFreeType);
26  }