src/jdk.internal.le/windows/classes/jdk/internal/org/jline/terminal/impl/jna/win/Kernel32.java
changeset 58903 eeb1c0da2126
parent 52938 5ff7480c9e28
equal deleted inserted replaced
58902:197238c30630 58903:eeb1c0da2126
     2  * Copyright (c) 2002-2018, the original author or authors.
     2  * Copyright (c) 2002-2018, the original author or authors.
     3  *
     3  *
     4  * This software is distributable under the BSD license. See the terms of the
     4  * This software is distributable under the BSD license. See the terms of the
     5  * BSD license in the documentation provided with this software.
     5  * BSD license in the documentation provided with this software.
     6  *
     6  *
     7  * http://www.opensource.org/licenses/bsd-license.php
     7  * https://opensource.org/licenses/BSD-3-Clause
     8  */
     8  */
     9 package jdk.internal.org.jline.terminal.impl.jna.win;
     9 package jdk.internal.org.jline.terminal.impl.jna.win;
    10 
    10 
    11 //OpenJDK changes:
    11 //OpenJDK changes:
    12 //-references to JNA types commented out
    12 //-references to JNA types commented out
    24 //import com.sun.jna.win32.W32APIOptions;
    24 //import com.sun.jna.win32.W32APIOptions;
    25 
    25 
    26 interface Kernel32 {//extends StdCallLibrary {
    26 interface Kernel32 {//extends StdCallLibrary {
    27 
    27 
    28     Kernel32 INSTANCE = new Kernel32Impl();
    28     Kernel32 INSTANCE = new Kernel32Impl();
    29 //    Kernel32 INSTANCE = (Kernel32) Native.loadLibrary("kernel32", Kernel32.class, W32APIOptions.UNICODE_OPTIONS);
    29 //    Kernel32 INSTANCE = Native.load("kernel32", Kernel32.class, W32APIOptions.UNICODE_OPTIONS);
    30 
    30 
    31 //    Pointer INVALID_HANDLE_VALUE = Pointer.createConstant(-1L);
    31 //    Pointer INVALID_HANDLE_VALUE = Pointer.createConstant(-1L);
    32 
    32 
    33     int STD_INPUT_HANDLE =  -10;
    33     int STD_INPUT_HANDLE =  -10;
    34     int STD_OUTPUT_HANDLE = -11;
    34     int STD_OUTPUT_HANDLE = -11;