Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

95 lines
2.6 KiB

  1. //****************************************************************************
  2. //
  3. // Microsoft NT Remote Access Service
  4. //
  5. // Copyright (C) 1992-93 Microsft Corporation. All rights reserved.
  6. //
  7. // Filename: serial.h
  8. //
  9. // Revision History:
  10. //
  11. // July 27, 1992 Gurdeep Pall Created
  12. //
  13. //
  14. // Description: This file contains name strings for standard parameter
  15. // names used for serial Media.
  16. //
  17. //****************************************************************************
  18. #ifndef _SERIALDLLINCLUDE_
  19. #define _SERIALDLLINCLUDE_
  20. // General Defines *********************************************************
  21. //
  22. #define MAX_BPS_STR_LEN 11 //Longest string from a DWORD + zero byte
  23. #define SERIAL_TXT "serial"
  24. // Serial.ini File Defines *************************************************
  25. //
  26. #define SER_MAXCONNECTBPS_KEY "MAXCONNECTBPS"
  27. #define SER_MAXCARRIERBPS_KEY "MAXCARRIERBPS"
  28. #define SER_INITBPS_KEY "INITIALBPS"
  29. #define SER_DEVICETYPE_KEY "DEVICETYPE"
  30. #define SER_DEVICENAME_KEY "DEVICENAME"
  31. #define SER_USAGE_KEY "USAGE"
  32. #define SER_USAGE_VALUE_CLIENT "Client"
  33. #define SER_USAGE_VALUE_SERVER "Server"
  34. #define SER_USAGE_VALUE_BOTH "ClientAndServer"
  35. #define SER_USAGE_VALUE_NONE "None"
  36. #define SER_DEFAULTOFF_KEY "DEFAULTOFF"
  37. #define SER_C_DEFAULTOFF_KEY "CLIENT_DEFAULTOFF"
  38. // PortGetInfo and PortSetInfo Defines *************************************
  39. //
  40. #define SER_PORTNAME_KEY "PortName"
  41. #define SER_CONNECTBPS_KEY "ConnectBPS"
  42. #define SER_DATABITS_KEY "WordSize"
  43. #define SER_PARITY_KEY "Parity"
  44. #define SER_STOPBITS_KEY "StopBits"
  45. #define SER_HDWFLOWCTRLON_KEY "HdwFlowControlEnabled"
  46. #define SER_CARRIERBPS_KEY "CarrierBPS"
  47. #define SER_ERRORCONTROLON_KEY "ErrorControlEnabled"
  48. #define SER_DEFAULTOFFSTR_KEY "DEFAULTOFF"
  49. #define SER_C_DEFAULTOFFSTR_KEY "CLIENT_DEFAULTOFF"
  50. #define SER_PORTOPEN_KEY "PortOpenFlag"
  51. // Statistics Indicies *****************************************************
  52. //
  53. #define NUM_RAS_SERIAL_STATS 14
  54. #define BYTES_XMITED 0 //Generic Stats
  55. #define BYTES_RCVED 1
  56. #define FRAMES_XMITED 2
  57. #define FRAMES_RCVED 3
  58. #define CRC_ERR 4 //Serial Stats
  59. #define TIMEOUT_ERR 5
  60. #define ALIGNMENT_ERR 6
  61. #define SERIAL_OVERRUN_ERR 7
  62. #define FRAMING_ERR 8
  63. #define BUFFER_OVERRUN_ERR 9
  64. #define BYTES_XMITED_UNCOMP 10 //Compression Stats
  65. #define BYTES_RCVED_UNCOMP 11
  66. #define BYTES_XMITED_COMP 12
  67. #define BYTES_RCVED_COMP 13
  68. #endif // _SERIALDLLINCLUDE_