MSCommLib, COM interface constants for VB.Net / VBScript

MSCommLib - interface constants

     This page contains simple VBA include for the MSCommLib COM library.

library parameters

File NameWINDOWS\system32\MSCOMM32.OCX
Guid{648A5603-2C6E-101B-82B6-000000000014}
Enums6

HandshakingConstants

enum, 4 members.
  'MS Comm Control Handshake Constants
Public Enum HandshakingConstants

  'No handshaking
  NoHandshaking = 0  '&H0

  'XOn/XOff handshaking
  XonXoff = 1  '&H1

  'Request-to-send/clear-to-send handshaking.
  RtsCts = 2  '&H2

  'Request-to-send, XOn/XOff handshaking.
  XonXoffAndRtsCts = 3  '&H3
End Enum

HandshakeConstants

enum, 4 members.
  'MS Comm Control Handshake Constants
Public Enum HandshakeConstants

  'No handshaking
  comNone = 0  '&H0

  'XOn/XOff handshaking
  comXOnXoff = 1  '&H1

  'Request-to-send/clear-to-send handshaking.
  comRTS = 2  '&H2

  'Request-to-send, XOn/XOff handshaking.
  comRTSXOnXOff = 3  '&H3
End Enum

ErrorConstants

enum, 21 members.
  'Error Constants
Public Enum ErrorConstants

  'Invalid property value
  comInvalidPropertyValue = 380  '&H17C

  'Property is write-only
  comGetNotSupported = 394  '&H18A

  'Property is read-only
  comSetNotSupported = 383  '&H17F

  'Invalid port number
  comPortInvalid = 8002  '&H1F42

  'Port already open
  comPortAlreadyOpen = 8005  '&H1F45

  'Operation not valid while the port is opened
  comPortOpen = 8000  '&H1F40

  'The device is not open
  comNoOpen = 8012  '&H1F4C

  'Could not set comm state, there may be one or more invalid communications parameters.
  comSetCommStateFailed = 8015  '&H1F4F

  'Operation valid only when the port is open
  comPortNotOpen = 8018  '&H1F52

  'Error reading comm device
  comReadError = 8020  '&H1F54

  'Internal error retrieving device control block for the port
  comDCBError = 8021  '&H1F55

  'Break signal received
  comBreak = 1001  '&H3E9

  'Clear-to-send timeout
  comCTSTO = 1002  '&H3EA

  'Data set ready timeout
  comDSRTO = 1003  '&H3EB

  'Framing error
  comFrame = 1004  '&H3EC

  'Port overrun
  comOverrun = 1006  '&H3EE

  'Carrier detect timeout
  comCDTO = 1007  '&H3EF

  'Receive buffer overflow
  comRxOver = 1008  '&H3F0

  'Parity error
  comRxParity = 1009  '&H3F1

  'Transmit buffer full
  comTxFull = 1010  '&H3F2

  'Unexpected error retrieving Device Control Block (DCB)
  comDCB = 1011  '&H3F3
End Enum

CommEventConstants

enum, 10 members.
  'Error constants.
Public Enum CommEventConstants

  'Break signal received
  comEventBreak = 1001  '&H3E9

  'Clear-to-send timeout
  comEventCTSTO = 1002  '&H3EA

  'Data set ready timeout
  comEventDSRTO = 1003  '&H3EB

  'Framing error
  comEventFrame = 1004  '&H3EC

  'Port overrun
  comEventOverrun = 1006  '&H3EE

  'Carrier detect timeout
  comEventCDTO = 1007  '&H3EF

  'Receive buffer overflow
  comEventRxOver = 1008  '&H3F0

  'Parity error
  comEventRxParity = 1009  '&H3F1

  'Transmit buffer full
  comEventTxFull = 1010  '&H3F2

  'Unexpected error retrieving Device Control Block (DCB)
  comEventDCB = 1011  '&H3F3
End Enum

OnCommConstants

enum, 7 members.
  'OnComm constants.
Public Enum OnCommConstants

  'Send event.
  comEvSend = 1  '&H1

  'Receive event.
  comEvReceive = 2  '&H2

  'Change in clear-to-send line
  comEvCTS = 3  '&H3

  'Change is data set ready line.
  comEvDSR = 4  '&H4

  'Change in carrier detect line.
  comEvCD = 5  '&H5

  'Ring detect.
  comEvRing = 6  '&H6

  'End of file.
  comEvEOF = 7  '&H7
End Enum

InputModeConstants

enum, 2 members.
  'InputMode Constants
Public Enum InputModeConstants

  'Text
  comInputModeText = 0  '&H0

  'Binary
  comInputModeBinary = 1  '&H1
End Enum
WUtils.com