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.

197 lines
3.7 KiB

  1. /*++
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. flagpage.h
  5. Abstract:
  6. Knob and page definitions for the winsock page
  7. Author:
  8. John Vert (jvert) 24-Apr-1995
  9. Revision History:
  10. --*/
  11. KNOB WinsockBufferMultiplier =
  12. {
  13. HKEY_LOCAL_MACHINE,
  14. TEXT("System\\CurrentControlSet\\Services\\Afd\\Parameters"),
  15. TEXT("BufferMultiplier"),
  16. WS_BUFFER_MULTIPLIER,
  17. 0,
  18. 0,
  19. 0
  20. };
  21. KNOB WinsockFastSendDgramThreshold =
  22. {
  23. HKEY_LOCAL_MACHINE,
  24. TEXT("System\\CurrentControlSet\\Services\\Afd\\Parameters"),
  25. TEXT("FastSendDatagramThreshold"),
  26. WS_FAST_SEND_DGRAM_THRESHOLD,
  27. 0,
  28. 0,
  29. 0
  30. };
  31. KNOB WinsockIrpStackSize =
  32. {
  33. HKEY_LOCAL_MACHINE,
  34. TEXT("System\\CurrentControlSet\\Services\\Afd\\Parameters"),
  35. TEXT("IrpStackSize"),
  36. WS_IRP_STACK_SIZE,
  37. 0,
  38. 0,
  39. 0
  40. };
  41. KNOB WinsockLargeBuffers =
  42. {
  43. HKEY_LOCAL_MACHINE,
  44. TEXT("System\\CurrentControlSet\\Services\\Afd\\Parameters"),
  45. TEXT("InitialLargeBufferCount"),
  46. WS_LARGE_BUFFER_COUNT,
  47. 0,
  48. 0,
  49. 0
  50. };
  51. KNOB WinsockLargeBufferSize =
  52. {
  53. HKEY_LOCAL_MACHINE,
  54. TEXT("System\\CurrentControlSet\\Services\\Afd\\Parameters"),
  55. TEXT("LargeBufferSize"),
  56. WS_LARGE_BUFFER_SIZE,
  57. 0,
  58. 0,
  59. 0
  60. };
  61. KNOB WinsockMediumBuffers =
  62. {
  63. HKEY_LOCAL_MACHINE,
  64. TEXT("System\\CurrentControlSet\\Services\\Afd\\Parameters"),
  65. TEXT("InitialMediumBufferCount"),
  66. WS_MEDIUM_BUFFER_COUNT,
  67. 0,
  68. 0,
  69. 0
  70. };
  71. KNOB WinsockMediumBufferSize =
  72. {
  73. HKEY_LOCAL_MACHINE,
  74. TEXT("System\\CurrentControlSet\\Services\\Afd\\Parameters"),
  75. TEXT("MediumBufferSize"),
  76. WS_MEDIUM_BUFFER_SIZE,
  77. 0,
  78. 0,
  79. 0
  80. };
  81. KNOB WinsockPriorityBoost =
  82. {
  83. HKEY_LOCAL_MACHINE,
  84. TEXT("System\\CurrentControlSet\\Services\\Afd\\Parameters"),
  85. TEXT("PriorityBoost"),
  86. WS_PRIORITY_BOOST,
  87. 0,
  88. 0,
  89. 0
  90. };
  91. KNOB WinsockReceiveWindow =
  92. {
  93. HKEY_LOCAL_MACHINE,
  94. TEXT("System\\CurrentControlSet\\Services\\Afd\\Parameters"),
  95. TEXT("DefaultReceiveWindow"),
  96. WS_RECEIVE_WINDOW,
  97. 0,
  98. 0,
  99. 0
  100. };
  101. KNOB WinsockSendWindow =
  102. {
  103. HKEY_LOCAL_MACHINE,
  104. TEXT("System\\CurrentControlSet\\Services\\Afd\\Parameters"),
  105. TEXT("DefaultSendWindow"),
  106. WS_SEND_WINDOW,
  107. 0,
  108. 0,
  109. 0
  110. };
  111. KNOB WinsockSmallBuffers =
  112. {
  113. HKEY_LOCAL_MACHINE,
  114. TEXT("System\\CurrentControlSet\\Services\\Afd\\Parameters"),
  115. TEXT("InitialSmallBufferCount"),
  116. WS_SMALL_BUFFER_COUNT,
  117. 0,
  118. 0,
  119. 0
  120. };
  121. KNOB WinsockSmallBufferSize =
  122. {
  123. HKEY_LOCAL_MACHINE,
  124. TEXT("System\\CurrentControlSet\\Services\\Afd\\Parameters"),
  125. TEXT("SmallBufferSize"),
  126. WS_SMALL_BUFFER_SIZE,
  127. 0,
  128. 0,
  129. 0
  130. };
  131. KNOB WinsockAddressLength =
  132. {
  133. HKEY_LOCAL_MACHINE,
  134. TEXT("System\\CurrentControlSet\\Services\\Afd\\Parameters"),
  135. TEXT("StandardAddressLength"),
  136. WS_STANDARD_ADDRESS_LENGTH,
  137. 0,
  138. 0,
  139. 0
  140. };
  141. KNOB WinsockTransmitIoLength =
  142. {
  143. HKEY_LOCAL_MACHINE,
  144. TEXT("System\\CurrentControlSet\\Services\\Afd\\Parameters"),
  145. TEXT("TransmitIoLength"),
  146. WS_TRANSMIT_IO_LENGTH,
  147. 0,
  148. 0,
  149. 0
  150. };
  151. TWEAK_PAGE WinsockPage =
  152. {
  153. MAKEINTRESOURCE(WINSOCK_DLG),
  154. NULL,
  155. {
  156. &WinsockBufferMultiplier,
  157. &WinsockFastSendDgramThreshold,
  158. &WinsockIrpStackSize,
  159. &WinsockLargeBuffers,
  160. &WinsockLargeBufferSize,
  161. &WinsockMediumBuffers,
  162. &WinsockMediumBufferSize,
  163. &WinsockPriorityBoost,
  164. &WinsockReceiveWindow,
  165. &WinsockSendWindow,
  166. &WinsockSmallBuffers,
  167. &WinsockSmallBufferSize,
  168. &WinsockAddressLength,
  169. &WinsockTransmitIoLength,
  170. NULL
  171. }
  172. };