jcommon.core.platform.win32
Class Win32Platform.Kernel32

java.lang.Object
  extended by jcommon.core.platform.win32.Win32Platform.Kernel32
All Implemented Interfaces:
com.sun.jna.AltCallingConvention, com.sun.jna.Library, com.sun.jna.win32.StdCall, com.sun.jna.win32.StdCallLibrary, Win32Errors, Win32Library
Enclosing class:
Win32Platform

public static class Win32Platform.Kernel32
extends Object
implements Win32Library


Nested Class Summary
static class Win32Platform.Kernel32.ASCII
           
static interface Win32Platform.Kernel32.CharacterEncodingFunctions
           
static class Win32Platform.Kernel32.CONSOLE_SCREEN_BUFFER_INFO
           
static class Win32Platform.Kernel32.Unicode
           
 
Nested classes/interfaces inherited from interface com.sun.jna.win32.StdCallLibrary
com.sun.jna.win32.StdCallLibrary.StdCallCallback
 
Nested classes/interfaces inherited from interface com.sun.jna.Library
com.sun.jna.Library.Handler
 
Field Summary
static int CONSOLE_TEXTMODE_BUFFER
           
static int FILE_SHARE_READ
           
static int FILE_SHARE_WRITE
           
static int GENERIC_READ
           
static int GENERIC_WRITE
           
static int INVALID_HANDLE_VALUE
           
static int STD_ERROR_HANDLE
           
static int STD_INPUT_HANDLE
           
static int STD_OUTPUT_HANDLE
           
 
Fields inherited from interface jcommon.core.platform.win32.Win32Library
ASCII_OPTIONS, DEFAULT_OPTIONS, UNICODE_OPTIONS, USE_ASCII, USE_UNICODE
 
Fields inherited from interface com.sun.jna.win32.StdCallLibrary
FUNCTION_MAPPER, STDCALL_CONVENTION
 
Fields inherited from interface com.sun.jna.Library
OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRUCTURE_ALIGNMENT, OPTION_TYPE_MAPPER
 
Fields inherited from interface jcommon.core.platform.win32.Win32Errors
ERROR_FILE_NOT_FOUND, ERROR_INVALID_FUNCTION, ERROR_PATH_NOT_FOUND, NO_ERROR
 
Constructor Summary
Win32Platform.Kernel32()
           
 
Method Summary
static int CloseHandle(int hObject)
           
static int CreateConsoleScreenBuffer(int dwDesiredAccess, int dwShareMode, com.sun.jna.Pointer lpSecurityAttributes, int dwFlags, com.sun.jna.Pointer lpScreenBufferData)
           
static int GetConsoleScreenBufferInfo(int hConsoleOutput, Win32Platform.Kernel32.CONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo)
           
static int GetCurrentProcessId()
           
static int GetLastError()
           
static int GetStdHandle(int nStdHandle)
           
static int SetCurrentDirectory(String path)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INVALID_HANDLE_VALUE

public static final int INVALID_HANDLE_VALUE
See Also:
Constant Field Values

STD_INPUT_HANDLE

public static final int STD_INPUT_HANDLE
See Also:
Constant Field Values

STD_OUTPUT_HANDLE

public static final int STD_OUTPUT_HANDLE
See Also:
Constant Field Values

STD_ERROR_HANDLE

public static final int STD_ERROR_HANDLE
See Also:
Constant Field Values

FILE_SHARE_READ

public static final int FILE_SHARE_READ
See Also:
Constant Field Values

FILE_SHARE_WRITE

public static final int FILE_SHARE_WRITE
See Also:
Constant Field Values

GENERIC_READ

public static final int GENERIC_READ
See Also:
Constant Field Values

GENERIC_WRITE

public static final int GENERIC_WRITE
See Also:
Constant Field Values

CONSOLE_TEXTMODE_BUFFER

public static final int CONSOLE_TEXTMODE_BUFFER
See Also:
Constant Field Values
Constructor Detail

Win32Platform.Kernel32

public Win32Platform.Kernel32()
Method Detail

CloseHandle

public static int CloseHandle(int hObject)

GetStdHandle

public static int GetStdHandle(int nStdHandle)

GetConsoleScreenBufferInfo

public static int GetConsoleScreenBufferInfo(int hConsoleOutput,
                                             Win32Platform.Kernel32.CONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo)

CreateConsoleScreenBuffer

public static int CreateConsoleScreenBuffer(int dwDesiredAccess,
                                            int dwShareMode,
                                            com.sun.jna.Pointer lpSecurityAttributes,
                                            int dwFlags,
                                            com.sun.jna.Pointer lpScreenBufferData)

GetLastError

public static int GetLastError()

GetCurrentProcessId

public static int GetCurrentProcessId()

SetCurrentDirectory

public static int SetCurrentDirectory(String path)


Copyright © 2012-2013. All Rights Reserved.