Leaked source code of windows server 2003
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.

96 lines
2.8 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_ROUTER "Router"
  36. #define SER_USAGE_VALUE_NONE "None"
  37. #define SER_DEFAULTOFF_KEY "DEFAULTOFF"
  38. #define SER_C_DEFAULTOFF_KEY "CLIENT_DEFAULTOFF"
  39. // PortGetInfo and PortSetInfo Defines *************************************
  40. //
  41. #define SER_PORTNAME_KEY "PortName"
  42. #define SER_CONNECTBPS_KEY "ConnectBPS"
  43. #define SER_DATABITS_KEY "WordSize"
  44. #define SER_PARITY_KEY "Parity"
  45. #define SER_STOPBITS_KEY "StopBits"
  46. #define SER_HDWFLOWCTRLON_KEY "HdwFlowControlEnabled"
  47. #define SER_CARRIERBPS_KEY "CarrierBPS"
  48. #define SER_ERRORCONTROLON_KEY "ErrorControlEnabled"
  49. #define SER_DEFAULTOFFSTR_KEY "DEFAULTOFF"
  50. #define SER_C_DEFAULTOFFSTR_KEY "CLIENT_DEFAULTOFF"
  51. #define SER_PORTOPEN_KEY "PortOpenFlag"
  52. // Statistics Indicies *****************************************************
  53. //
  54. #define NUM_RAS_SERIAL_STATS 14
  55. #define BYTES_XMITED 0 //Generic Stats
  56. #define BYTES_RCVED 1
  57. #define FRAMES_XMITED 2
  58. #define FRAMES_RCVED 3
  59. #define CRC_ERR 4 //Serial Stats
  60. #define TIMEOUT_ERR 5
  61. #define ALIGNMENT_ERR 6
  62. #define SERIAL_OVERRUN_ERR 7
  63. #define FRAMING_ERR 8
  64. #define BUFFER_OVERRUN_ERR 9
  65. #define BYTES_XMITED_UNCOMP 10 //Compression Stats
  66. #define BYTES_RCVED_UNCOMP 11
  67. #define BYTES_XMITED_COMP 12
  68. #define BYTES_RCVED_COMP 13
  69. #endif // _SERIALDLLINCLUDE_