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
    • Method Detail

      • 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
      • 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​(java.lang.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
      • 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