Interface WinNT

  • All Superinterfaces:
    BaseTSD, WinBase, WinDef
    All Known Subinterfaces:
    Kernel32

    public interface WinNT
    extends WinDef, WinBase, BaseTSD
    This module defines the 32-Bit Windows types and constants that are defined by NT, but exposed through the Win32 API. Ported from WinNT.h Microsoft Windows SDK 6.0A.
    Since:
    0.40
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int CREATE_ALWAYS
      This flag determines how a file should be handled if it already exists or doesn't exist when you attempt to create or open it.
      static int FILE_ATTRIBUTE_NORMAL
      This flag specifies the file's attributes.
      static int GENERIC_READ
      This flag grants read access to the file or resource.
      static int GENERIC_WRITE
      This flag specifies the desired access to the file.
      static int OPEN_EXISTING
      The OPEN_EXISTING flag tells the CreateFile function to open the file only if it already exists.
    • Field Detail

      • FILE_ATTRIBUTE_NORMAL

        static final int FILE_ATTRIBUTE_NORMAL
        This flag specifies the file's attributes. FILE_ATTRIBUTE_NORMAL indicates that the file does not have any special attributes. Value: 0x80 (or 128 in decimal) Behavior: The file is a standard file with no special attributes, such as hidden, system, or read-only.
        See Also:
        Constant Field Values
      • CREATE_ALWAYS

        static final int CREATE_ALWAYS
        This flag determines how a file should be handled if it already exists or doesn't exist when you attempt to create or open it. Behavior: If the file already exists, it will be overwritten (truncated to zero length). If the file does not exist, it will be created.
        See Also:
        Constant Field Values
      • OPEN_EXISTING

        static final int OPEN_EXISTING
        The OPEN_EXISTING flag tells the CreateFile function to open the file only if it already exists. If the file doesn't exist, the function fails, and an error is returned (typically ERROR_FILE_NOT_FOUND).
        See Also:
        Constant Field Values
      • GENERIC_WRITE

        static final int GENERIC_WRITE
        This flag specifies the desired access to the file. GENERIC_WRITE allows for writing data to the file. Value: 0x40000000 (or 1073741824 in decimal) The file can be written to, meaning you can modify its contents. This flag grants the ability to write data, append data, or modify file attributes.
        See Also:
        Constant Field Values
      • GENERIC_READ

        static final int GENERIC_READ
        This flag grants read access to the file or resource. When you specify GENERIC_READ, the handle you obtain will allow you to read the contents of the file or resource. Value: 0x80000000
        See Also:
        Constant Field Values