Class Winbase


  • @Include("WinBase.h")
    public abstract class Winbase
    extends Object
    Wrapper around the winbase.h header.
    Author:
    aploese
    • Field Detail

      • FILE_SKIP_SET_EVENT_ON_HANDLE

        @Define
        public static final byte FILE_SKIP_SET_EVENT_ON_HANDLE
        FILE_SKIP_SET_EVENT_ON_HANDLE The I/O Manager does not set the event for the file object if a request returns with a success code, or the error returned is ERROR_PENDING and the function that is called is not a synchronous function.
      • FILE_SKIP_COMPLETION_PORT_ON_SUCCESS

        @Define
        public static final byte FILE_SKIP_COMPLETION_PORT_ON_SUCCESS
        FILE_SKIP_COMPLETION_PORT_ON_SUCCESS If some conditions are true, the I/O Manager does not queue a completion entry to the port, when it would ordinarily do so.
      • CE_BREAK

        @Define
        public static final byte CE_BREAK
        CE_BREAK The hardware detected a break condition.
      • CE_FRAME

        @Define
        public static final byte CE_FRAME
        CE_FRAME The hardware detected a framing error.
      • CE_OVERRUN

        @Define
        public static final byte CE_OVERRUN
        CE_OVERRUN A character-buffer overrun has occurred. The next character is lost.
      • CE_RXOVER

        @Define
        public static final byte CE_RXOVER
        CE_RXOVER An input buffer overflow has occurred. There is either no room in the input buffer, or a character was received after the end-of-file (EOF) character.
      • CE_RXPARITY

        @Define
        public static final byte CE_RXPARITY
        CE_RXPARITY The hardware detected a parity error.
      • CLRBREAK

        @Define
        public static final int CLRBREAK
        CLRBREAK Restores character transmission and places the transmission line in a nonbreak state. The CLRBREAK extended function code is identical to the ClearCommBreak function.
      • CLRDTR

        @Define
        public static final int CLRDTR
        CLRDTR Clears the DTR (data-terminal-ready) signal.
      • CLRRTS

        @Define
        public static final int CLRRTS
        CLRRTS Clears the RTS (request-to-send) signal.
      • DTR_CONTROL_DISABLE

        @Define
        public static final byte DTR_CONTROL_DISABLE
        DTR_CONTROL_DISABLE Disables the DTR line when the device is opened and leaves it disabled.
      • DTR_CONTROL_ENABLE

        @Define
        public static final byte DTR_CONTROL_ENABLE
        DTR_CONTROL_ENABLE Enables the DTR line when the device is opened and leaves it on.
      • DTR_CONTROL_HANDSHAKE

        @Define
        public static final byte DTR_CONTROL_HANDSHAKE
        DTR_CONTROL_HANDSHAKE Enables DTR handshaking. If handshaking is enabled, it is an error for the application to adjust the line by using the EscapeCommFunction function.
      • FILE_ATTRIBUTE_ARCHIVE

        @Define
        public static final int FILE_ATTRIBUTE_ARCHIVE
        FILE_ATTRIBUTE_ARCHIVE The file should be archived. Applications use this attribute to mark files for backup or removal.
      • FILE_ATTRIBUTE_ENCRYPTED

        @Define
        public static final int FILE_ATTRIBUTE_ENCRYPTED
        FILE_ATTRIBUTE_ENCRYPTED The file or directory is encrypted. For a file, this means that all data in the file is encrypted.
      • FILE_ATTRIBUTE_HIDDEN

        @Define
        public static final int FILE_ATTRIBUTE_HIDDEN
        FILE_ATTRIBUTE_HIDDEN The file is hidden. Do not include it in an ordinary directory listing.
      • FILE_ATTRIBUTE_NORMAL

        @Define
        public static final int FILE_ATTRIBUTE_NORMAL
        FILE_ATTRIBUTE_NORMAL The file does not have other attributes set. This attribute is valid only if used alone.
      • FILE_ATTRIBUTE_OFFLINE

        @Define
        public static final int FILE_ATTRIBUTE_OFFLINE
        FILE_ATTRIBUTE_OFFLINE The data of a file is not immediately available.
      • FILE_ATTRIBUTE_READONLY

        @Define
        public static final int FILE_ATTRIBUTE_READONLY
        FILE_ATTRIBUTE_READONLY The file is read only. Applications can read the file, but cannot write to or delete it.
      • FILE_ATTRIBUTE_SYSTEM

        @Define
        public static final int FILE_ATTRIBUTE_SYSTEM
        FILE_ATTRIBUTE_SYSTEM The file is part of or used exclusively by an operating system.
      • FILE_ATTRIBUTE_TEMPORARY

        @Define
        public static final int FILE_ATTRIBUTE_TEMPORARY
        FILE_ATTRIBUTE_TEMPORARY The file is being used for temporary storage.
      • FILE_FLAG_BACKUP_SEMANTICS

        @Define
        public static final int FILE_FLAG_BACKUP_SEMANTICS
        FILE_FLAG_BACKUP_SEMANTICS The file is being opened or created for a backup or restore operation.
      • FILE_FLAG_DELETE_ON_CLOSE

        @Define
        public static final int FILE_FLAG_DELETE_ON_CLOSE
        FILE_FLAG_DELETE_ON_CLOSE The file is to be deleted immediately after all of its handles are closed, which includes the specified handle and any other open or duplicated handles.
      • FILE_FLAG_NO_BUFFERING

        @Define
        public static final int FILE_FLAG_NO_BUFFERING
        FILE_FLAG_NO_BUFFERING The file or device is being opened with no system caching for data reads and writes.
      • FILE_FLAG_OPEN_NO_RECALL

        @Define
        public static final int FILE_FLAG_OPEN_NO_RECALL
        FILE_FLAG_OPEN_NO_RECALL The file data is requested, but it should continue to be located in remote storage.
      • FILE_FLAG_OPEN_REPARSE_POINT

        @Define
        public static final int FILE_FLAG_OPEN_REPARSE_POINT
        FILE_FLAG_OPEN_REPARSE_POINT Normal reparse point processing will not occur; CreateFile will attempt to open the reparse point.
      • FILE_FLAG_OVERLAPPED

        @Define
        public static final int FILE_FLAG_OVERLAPPED
        FILE_FLAG_OVERLAPPED The file or device is being opened or created for asynchronous I/O.
      • FILE_FLAG_RANDOM_ACCESS

        @Define
        public static final int FILE_FLAG_RANDOM_ACCESS
        FILE_FLAG_RANDOM_ACCESS Access is intended to be random. The system can use this as a hint to optimize file caching.
      • FILE_FLAG_SEQUENTIAL_SCAN

        @Define
        public static final int FILE_FLAG_SEQUENTIAL_SCAN
        FILE_FLAG_SEQUENTIAL_SCAN Access is intended to be sequential from beginning to end.
      • FILE_FLAG_SESSION_AWARE

        @Define
        public static final int FILE_FLAG_SESSION_AWARE
        FILE_FLAG_SESSION_AWARE The file or device is being opened with session awareness.
      • FILE_FLAG_WRITE_THROUGH

        @Define
        public static final int FILE_FLAG_WRITE_THROUGH
        FILE_FLAG_WRITE_THROUGH Write operations will not go through any intermediate cache, they will go directly to disk.
      • SECURITY_ANONYMOUS

        @Define
        public static final int SECURITY_ANONYMOUS
        SECURITY_ANONYMOUS Impersonates a client at the Anonymous impersonation level.
      • SECURITY_DELEGATION

        @Define
        public static final int SECURITY_DELEGATION
        SECURITY_DELEGATION Impersonates a client at the Delegation impersonation level.
      • SECURITY_EFFECTIVE_ONLY

        @Define
        public static final int SECURITY_EFFECTIVE_ONLY
        SECURITY_EFFECTIVE_ONLY Only the enabled aspects of the client's security context are available to the server.
      • SECURITY_IDENTIFICATION

        @Define
        public static final int SECURITY_IDENTIFICATION
        SECURITY_IDENTIFICATION Impersonates a client at the Identification impersonation level.
      • SECURITY_IMPERSONATION

        @Define
        public static final int SECURITY_IMPERSONATION
        SECURITY_IMPERSONATION Impersonate a client at the impersonation level.
      • HAVE_WINBASE_H

        public static final boolean HAVE_WINBASE_H
      • INFINITE

        @Define
        public static final int INFINITE
      • MS_CTS_ON

        @Define
        public static final int MS_CTS_ON
        MS_CTS_ON The CTS (clear-to-send) signal is on.
      • MS_DSR_ON

        @Define
        public static final int MS_DSR_ON
        MS_DSR_ON The DSR (data-set-ready) signal is on.
      • MS_RING_ON

        @Define
        public static final int MS_RING_ON
        MS_RING_ON The ring indicator signal is on.
      • MS_RLSD_ON

        @Define
        public static final int MS_RLSD_ON
        MS_RLSD_ON The RLSD (receive-line-signal-detect) signal is on.
      • RTS_CONTROL_DISABLE

        @Define
        public static final byte RTS_CONTROL_DISABLE
        RTS_CONTROL_DISABLE Disables the RTS line when the device is opened and leaves it disabled.
      • RTS_CONTROL_ENABLE

        @Define
        public static final byte RTS_CONTROL_ENABLE
        RTS_CONTROL_ENABLE Enables the RTS line when the device is opened and leaves it on.
      • RTS_CONTROL_TOGGLE

        @Define
        public static final byte RTS_CONTROL_TOGGLE
        RTS_CONTROL_TOGGLE Specifies that the RTS line will be high if bytes are available for transmission.
      • SETBREAK

        @Define
        public static final int SETBREAK
        SETBREAK Suspends character transmission and places the transmission line in a break state until the ClearCommBreak function is called (or EscapeCommFunction is called with the CLRBREAK extended function code).
      • SETDTR

        @Define
        public static final int SETDTR
        SETDTR Sends the DTR (data-terminal-ready) signal.
      • SETRTS

        @Define
        public static final int SETRTS
        SETRTS Sends the RTS (request-to-send) signal.
      • SETXOFF

        @Define
        public static final int SETXOFF
        SETXOFF Causes transmission to act as if an XOFF character has been received.
      • SETXON

        @Define
        public static final int SETXON
        SETXON Causes transmission to act as if an XON character has been received.
      • STD_ERROR_HANDLE

        @Define
        public static final int STD_ERROR_HANDLE
        STD_ERROR_HANDLE The standard error device. Initially, this is the active console screen buffer, CONOUT$.
      • STD_INPUT_HANDLE

        @Define
        public static final int STD_INPUT_HANDLE
        STD_INPUT_HANDLE The standard input device. Initially, this is the console input buffer, CONIN$.
      • STD_OUTPUT_HANDLE

        @Define
        public static final int STD_OUTPUT_HANDLE
        STD_OUTPUT_HANDLE The standard output device. Initially, this is the active console screen buffer, CONOUT$.
      • MAXIMUM_WAIT_OBJECTS

        @Define
        public static final int MAXIMUM_WAIT_OBJECTS
        MAXIMUM_WAIT_OBJECTS The state of the specified object is signaled.
      • WAIT_FAILED

        @Define
        public static final int WAIT_FAILED
        WAIT_FAILED The specified object is a mutex object that was not released by the thread that owned the mutex object before the owning thread terminated. The function has failed. To get extended error information, call GetLastError.
        This is usually done in the native code which throws a NativeErrorExcepotion instead of passing this back.
      • WAIT_OBJECT_0

        @Define
        public static final int WAIT_OBJECT_0
        WAIT_OBJECT_0 The state of the specified object is signaled.
      • WAIT_IO_COMPLETION

        @Define
        public static final int WAIT_IO_COMPLETION
        WAIT_IO_COMPLETION The state of the specified object is signaled.
      • WAIT_TIMEOUT

        @Define
        public static final int WAIT_TIMEOUT
        WAIT_TIMEOUT The time-out interval elapsed, and the object's state is nonsignaled.
    • Constructor Detail

      • Winbase

        public Winbase()