home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 10 / ioProg_10.iso / soft / sdk20 / jsdk05.cab / Src / Win32Api / DCB.java < prev    next >
Encoding:
Java Source  |  1997-09-25  |  1.7 KB  |  50 lines

  1. // Copyright (C) 1997 Microsoft Corporation  All Rights Reserved
  2.  
  3. // These classes provide direct, low-overhead access to commonly used
  4. // Windows api. These classes use the new J/Direct feature.
  5. //
  6. // Information on how to use J/Direct to write your own declarations
  7. // can be found in the Microsoft SDK for Java 2.0.
  8.  
  9. package com.ms.win32;
  10.  
  11.  
  12. /** @dll.struct() */
  13. public class DCB {
  14.         public int DCBlength;
  15.         public int BaudRate;
  16.         public int fBitFields;
  17.         public short wReserved;
  18.         public short XonLim;
  19.         public short XoffLim;
  20.         public byte ByteSize;
  21.         public byte Parity;
  22.         public byte StopBits;
  23.         public char XonChar;
  24.         public char XoffChar;
  25.         public char ErrorChar;
  26.         public char EofChar;
  27.         public char EvtChar;
  28.         public short wReserved1;
  29.  
  30.  
  31.  
  32.         public static final int fBinary           = 0x00000001;
  33.         public static final int fParity           = 0x00000002;
  34.         public static final int fOutxCtsFlow      = 0x00000004;
  35.         public static final int fOutxDsrFlow      = 0x00000008;
  36.         public static final int fDtrControl       = 0x00000030;
  37.         public static final int fDsrSensitivity   = 0x00000040;
  38.         public static final int fTXContinueOnXoff = 0x00000080;
  39.         public static final int fOutX             = 0x00000100;
  40.         public static final int fInX              = 0x00000200;
  41.         public static final int fErrorChar        = 0x00000400;
  42.         public static final int fNull             = 0x00000800;
  43.         public static final int fRtsControl       = 0x00003000;
  44.         public static final int fAbortOnError     = 0x00004000;
  45.  
  46.  
  47. }
  48.  
  49.  
  50.