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.

168 lines
3.7 KiB

  1. /*++
  2. Copyright (c) 1993 Microsoft Corporation
  3. Module Name:
  4. Const.h
  5. Abstract:
  6. This module declares the obal data used by the NetWare redirector
  7. file system.
  8. Author:
  9. Colin Watson [ColinW] 14-Jan-1993
  10. Revision History:
  11. --*/
  12. #ifndef _NWCONST_
  13. #define _NWCONST_
  14. // Number of spare stack locations required in Irp's submitted to this
  15. // filesystem
  16. #define NWRDR_IO_STACKSIZE 2
  17. //
  18. // NT uses a system time measured in 100 nanosecnd intervals. define
  19. // convenient constants for setting the timer.
  20. //
  21. #define MICROSECONDS 10
  22. #define MILLISECONDS MICROSECONDS*1000
  23. #define SECONDS MILLISECONDS*1000
  24. #define NwOneSecond 10000000
  25. //
  26. // Default number of times to retranmit a packet before giving up
  27. // on waiting for a response.
  28. //
  29. #define DEFAULT_RETRY_COUNT 10
  30. //
  31. // Amount of time, in seconds, an idle SCB or VCB should be kept around before
  32. // being cleaned up.
  33. //
  34. #define DORMANT_SCB_KEEP_TIME 120
  35. #define DORMANT_VCB_KEEP_TIME 120
  36. //
  37. // Largest netware file name
  38. //
  39. #define NW_MAX_FILENAME_LENGTH 255
  40. #define NW_MAX_FILENAME_SIZE ( NW_MAX_FILENAME_LENGTH * sizeof(WCHAR) )
  41. //
  42. // Default frequency for running the scavenger (in 1/18th second ticks)
  43. // Approx once per minute.
  44. //
  45. #define DEFAULT_SCAVENGER_TICK_RUN_COUNT 1100
  46. //
  47. // Size of the drive map table. With room for 26 letter connections,
  48. // and 10 LPT connections.
  49. //
  50. #define MAX_DISK_REDIRECTIONS 26
  51. #define MAX_LPT_REDIRECTIONS 10
  52. #define DRIVE_MAP_TABLE_SIZE (MAX_DISK_REDIRECTIONS + MAX_LPT_REDIRECTIONS)
  53. //
  54. // The size of the largest packet we can generate, rounded up to DWORD
  55. // size. This longest packet is a rename with two long filenames plus
  56. // the header (256*2) + 32
  57. //
  58. #define MAX_SEND_DATA (512)+32
  59. //
  60. // The size of the largest non READ packet we can receive, rounded up to DWORD
  61. // size. This longest packet is read queue job list of 250 jobs
  62. //
  63. #define MAX_RECV_DATA 544+32
  64. //
  65. // Best guess at max packet size, if the transport can't tell us.
  66. // Pick the largest value that will work on any net.
  67. //
  68. #define DEFAULT_PACKET_SIZE 512
  69. //
  70. // How close we want to get to true MTU of a connection
  71. //
  72. #define BURST_PACKET_SIZE_TOLERANCE 8
  73. //
  74. // Default tick count, in case the transport won't fess up.
  75. //
  76. #define DEFAULT_TICK_COUNT 2
  77. //
  78. // Maximum number of times to retry SAP broadcast if we get no response
  79. //
  80. #define MAX_SAP_RETRIES 2
  81. //
  82. // The maximum number of SAP response to process if we get many.
  83. //
  84. #define MAX_SAP_RESPONSES 4
  85. #define LFN_NO_OS2_NAME_SPACE -1
  86. //
  87. // The ordinal for the long namespace in the namespace packet.
  88. //
  89. #define DOS_NAME_SPACE_ORDINAL 0
  90. #define LONG_NAME_SPACE_ORDINAL 4
  91. //
  92. // Largest possible SAP Response size and size of a SAP record
  93. //
  94. #define MAX_SAP_RESPONSE_SIZE 512
  95. #define SAP_RECORD_SIZE (2 + 48 + 12 + 2)
  96. #define FIND_NEAREST_RESP_SIZE (2 + SAP_RECORD_SIZE)
  97. //
  98. // Netware limits
  99. //
  100. #define MAX_SERVER_NAME_LENGTH 48
  101. #define MAX_UNICODE_UID_LENGTH 8
  102. #define MAX_USER_NAME_LENGTH 49
  103. #define MAX_VOLUME_NAME_LENGTH 17
  104. //
  105. // Maximum number of unique drive letters we will send to a server.
  106. // Only seems to matter to portable netWare servers.
  107. //
  108. #define MAX_DRIVES 64
  109. //
  110. // Default Timeout Event interval. We do not want to fill up the
  111. // event-log with timeout events. If a timeout event has been logged
  112. // in the last timeout event interval, we will ignore further timeout
  113. // events.
  114. //
  115. #define DEFAULT_TIMEOUT_EVENT_INTERVAL 5
  116. #endif // _NWCONST_