Interface Kernel32

All Superinterfaces:
com.sun.jna.AltCallingConvention, com.sun.jna.Library, com.sun.jna.win32.StdCall, com.sun.jna.win32.StdCallLibrary

interface Kernel32 extends com.sun.jna.win32.StdCallLibrary
  • Field Details

  • Method Details

    • WaitForSingleObject

      int WaitForSingleObject(com.sun.jna.Pointer in_hHandle, int in_dwMilliseconds)
    • GetStdHandle

      com.sun.jna.Pointer GetStdHandle(int nStdHandle)
    • AllocConsole

      void AllocConsole() throws com.sun.jna.LastErrorException
      Throws:
      com.sun.jna.LastErrorException
    • FreeConsole

      void FreeConsole() throws com.sun.jna.LastErrorException
      Throws:
      com.sun.jna.LastErrorException
    • GetConsoleWindow

      com.sun.jna.Pointer GetConsoleWindow()
    • GetConsoleCP

      int GetConsoleCP()
    • FillConsoleOutputCharacter

      void FillConsoleOutputCharacter(com.sun.jna.Pointer in_hConsoleOutput, char in_cCharacter, int in_nLength, Kernel32.COORD in_dwWriteCoord, com.sun.jna.ptr.IntByReference out_lpNumberOfCharsWritten) throws com.sun.jna.LastErrorException
      Throws:
      com.sun.jna.LastErrorException
    • FillConsoleOutputAttribute

      void FillConsoleOutputAttribute(com.sun.jna.Pointer in_hConsoleOutput, short in_wAttribute, int in_nLength, Kernel32.COORD in_dwWriteCoord, com.sun.jna.ptr.IntByReference out_lpNumberOfAttrsWritten) throws com.sun.jna.LastErrorException
      Throws:
      com.sun.jna.LastErrorException
    • GetConsoleCursorInfo

      void GetConsoleCursorInfo(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.CONSOLE_CURSOR_INFO.ByReference out_lpConsoleCursorInfo) throws com.sun.jna.LastErrorException
      Throws:
      com.sun.jna.LastErrorException
    • GetConsoleMode

      void GetConsoleMode(com.sun.jna.Pointer in_hConsoleOutput, com.sun.jna.ptr.IntByReference out_lpMode) throws com.sun.jna.LastErrorException
      Throws:
      com.sun.jna.LastErrorException
    • GetConsoleScreenBufferInfo

      void GetConsoleScreenBufferInfo(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.CONSOLE_SCREEN_BUFFER_INFO out_lpConsoleScreenBufferInfo) throws com.sun.jna.LastErrorException
      Throws:
      com.sun.jna.LastErrorException
    • GetNumberOfConsoleInputEvents

      void GetNumberOfConsoleInputEvents(com.sun.jna.Pointer in_hConsoleOutput, com.sun.jna.ptr.IntByReference out_lpcNumberOfEvents) throws com.sun.jna.LastErrorException
      Throws:
      com.sun.jna.LastErrorException
    • ReadConsoleInput

      void ReadConsoleInput(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.INPUT_RECORD[] out_lpBuffer, int in_nLength, com.sun.jna.ptr.IntByReference out_lpNumberOfEventsRead) throws com.sun.jna.LastErrorException
      Throws:
      com.sun.jna.LastErrorException
    • SetConsoleCtrlHandler

      void SetConsoleCtrlHandler(com.sun.jna.Pointer in_opt_HandlerRoutine, boolean in_Add) throws com.sun.jna.LastErrorException
      Throws:
      com.sun.jna.LastErrorException
    • ReadConsoleOutput

      void ReadConsoleOutput(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.CHAR_INFO[] out_lpBuffer, Kernel32.COORD in_dwBufferSize, Kernel32.COORD in_dwBufferCoord, Kernel32.SMALL_RECT inout_lpReadRegion) throws com.sun.jna.LastErrorException
      Throws:
      com.sun.jna.LastErrorException
    • ReadConsoleOutputA

      void ReadConsoleOutputA(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.CHAR_INFO[] out_lpBuffer, Kernel32.COORD in_dwBufferSize, Kernel32.COORD in_dwBufferCoord, Kernel32.SMALL_RECT inout_lpReadRegion) throws com.sun.jna.LastErrorException
      Throws:
      com.sun.jna.LastErrorException
    • ReadConsoleOutputCharacter

      void ReadConsoleOutputCharacter(com.sun.jna.Pointer in_hConsoleOutput, char[] ouy_lpCharacter, int in_nLength, Kernel32.COORD in_dwReadCoord, com.sun.jna.ptr.IntByReference out_lpNumberOfCharsRead) throws com.sun.jna.LastErrorException
      Throws:
      com.sun.jna.LastErrorException
    • ReadConsoleOutputCharacterA

      void ReadConsoleOutputCharacterA(com.sun.jna.Pointer in_hConsoleOutput, byte[] ouy_lpCharacter, int in_nLength, Kernel32.COORD in_dwReadCoord, com.sun.jna.ptr.IntByReference out_lpNumberOfCharsRead) throws com.sun.jna.LastErrorException
      Throws:
      com.sun.jna.LastErrorException
    • SetConsoleCursorInfo

      void SetConsoleCursorInfo(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.CONSOLE_CURSOR_INFO in_lpConsoleCursorInfo) throws com.sun.jna.LastErrorException
      Throws:
      com.sun.jna.LastErrorException
    • SetConsoleCP

      void SetConsoleCP(int in_wCodePageID) throws com.sun.jna.LastErrorException
      Throws:
      com.sun.jna.LastErrorException
    • SetConsoleOutputCP

      void SetConsoleOutputCP(int in_wCodePageID) throws com.sun.jna.LastErrorException
      Throws:
      com.sun.jna.LastErrorException
    • SetConsoleCursorPosition

      void SetConsoleCursorPosition(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.COORD in_dwCursorPosition) throws com.sun.jna.LastErrorException
      Throws:
      com.sun.jna.LastErrorException
    • SetConsoleMode

      void SetConsoleMode(com.sun.jna.Pointer in_hConsoleOutput, int in_dwMode) throws com.sun.jna.LastErrorException
      Throws:
      com.sun.jna.LastErrorException
    • SetConsoleScreenBufferSize

      void SetConsoleScreenBufferSize(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.COORD in_dwSize) throws com.sun.jna.LastErrorException
      Throws:
      com.sun.jna.LastErrorException
    • SetConsoleTextAttribute

      void SetConsoleTextAttribute(com.sun.jna.Pointer in_hConsoleOutput, short in_wAttributes) throws com.sun.jna.LastErrorException
      Throws:
      com.sun.jna.LastErrorException
    • SetConsoleTitle

      void SetConsoleTitle(String in_lpConsoleTitle) throws com.sun.jna.LastErrorException
      Throws:
      com.sun.jna.LastErrorException
    • SetConsoleWindowInfo

      void SetConsoleWindowInfo(com.sun.jna.Pointer in_hConsoleOutput, boolean in_bAbsolute, Kernel32.SMALL_RECT in_lpConsoleWindow) throws com.sun.jna.LastErrorException
      Throws:
      com.sun.jna.LastErrorException
    • WriteConsoleW

      void WriteConsoleW(com.sun.jna.Pointer in_hConsoleOutput, char[] in_lpBuffer, int in_nNumberOfCharsToWrite, com.sun.jna.ptr.IntByReference out_lpNumberOfCharsWritten, com.sun.jna.Pointer reserved_lpReserved) throws com.sun.jna.LastErrorException
      Throws:
      com.sun.jna.LastErrorException
    • WriteConsoleOutput

      void WriteConsoleOutput(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.CHAR_INFO[] in_lpBuffer, Kernel32.COORD in_dwBufferSize, Kernel32.COORD in_dwBufferCoord, Kernel32.SMALL_RECT inout_lpWriteRegion) throws com.sun.jna.LastErrorException
      Throws:
      com.sun.jna.LastErrorException
    • WriteConsoleOutputA

      void WriteConsoleOutputA(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.CHAR_INFO[] in_lpBuffer, Kernel32.COORD in_dwBufferSize, Kernel32.COORD in_dwBufferCoord, Kernel32.SMALL_RECT inout_lpWriteRegion) throws com.sun.jna.LastErrorException
      Throws:
      com.sun.jna.LastErrorException
    • WriteConsoleOutputCharacter

      void WriteConsoleOutputCharacter(com.sun.jna.Pointer in_hConsoleOutput, char[] in_lpCharacter, int in_nLength, Kernel32.COORD in_dwWriteCoord, com.sun.jna.ptr.IntByReference out_lpNumberOfCharsWritten) throws com.sun.jna.LastErrorException
      Throws:
      com.sun.jna.LastErrorException
    • WriteConsoleOutputCharacterA

      void WriteConsoleOutputCharacterA(com.sun.jna.Pointer in_hConsoleOutput, byte[] in_lpCharacter, int in_nLength, Kernel32.COORD in_dwWriteCoord, com.sun.jna.ptr.IntByReference out_lpNumberOfCharsWritten) throws com.sun.jna.LastErrorException
      Throws:
      com.sun.jna.LastErrorException
    • ScrollConsoleScreenBuffer

      void ScrollConsoleScreenBuffer(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.SMALL_RECT in_lpScrollRectangle, Kernel32.SMALL_RECT in_lpClipRectangle, Kernel32.COORD in_dwDestinationOrigin, Kernel32.CHAR_INFO in_lpFill) throws com.sun.jna.LastErrorException
      Throws:
      com.sun.jna.LastErrorException