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.

146 lines
4.1 KiB

  1. /*******************************************************************/
  2. /* Copyright(c) 1992 Microsoft Corporation */
  3. /*******************************************************************/
  4. //***
  5. //
  6. // Filename: nbgparms.h
  7. //
  8. // Description: This module contains the definitions for loading
  9. // the netbios gateway parameters from the registry. This lives
  10. // in the inc directory because it is also used by NBFCP
  11. //
  12. // Author: Stefan Solomon (stefans) July 15, 1992.
  13. //
  14. // Revision History:
  15. //
  16. //***
  17. #ifndef _NBGPARMS_
  18. #define _NBGPARMS_
  19. #define MAX_NB_NAMES 28
  20. #define NCBQUICKADDNAME 0x75
  21. //
  22. // Names of Netbios Gateway registry keys
  23. //
  24. #define RAS_NBG_PARAMETERS_KEY_PATH "System\\CurrentControlSet\\Services\\RemoteAccess\\Parameters\\Nbf"
  25. //
  26. // Names of Netbios Gateway registry parameters
  27. //
  28. #define RAS_NBG_VALNAME_AVAILABLELANNETS "AvailableLanNets"
  29. #define RAS_NBG_VALNAME_ENABLEBROADCAST "EnableBroadcast"
  30. #define RAS_NBG_VALNAME_MAXDYNMEM "MaxDynMem"
  31. #define RAS_NBG_VALNAME_MAXNAMES "MaxNames"
  32. #define RAS_NBG_VALNAME_MAXSESSIONS "MaxSessions"
  33. #define RAS_NBG_VALNAME_MULTICASTFORWARDRATE "MulticastForwardRate"
  34. #define RAS_NBG_VALNAME_SIZWORKBUF "SizWorkbuf"
  35. #define RAS_NBG_VALNAME_REMOTELISTEN "RemoteListen"
  36. #define RAS_NBG_VALNAME_NAMEUPDATETIME "NameUpdateTime"
  37. #define RAS_NBG_VALNAME_MAXDGBUFFEREDPERGROUPNAME "MaxDgBufferedPerGroupName"
  38. #define RAS_NBG_VALNAME_RCVDGSUBMITTEDPERGROUPNAME "RcvDgSubmittedPerGroupName"
  39. #define RAS_NBG_VALNAME_DISMCASTWHENSESSTRAFFIC "DisableMcastFwdWhenSessionTraffic"
  40. #define RAS_NBG_VALNAME_MAXBCASTDGBUFFERED "MaxBcastDgBuffered"
  41. #define RAS_NBG_VALNAME_NUMRECVQUERYINDICATIONS "NumRecvQueryIndications"
  42. #define RAS_NBG_VALNAME_ENABLENBSESSIONSAUDITING "EnableNetbiosSessionsAuditing"
  43. typedef struct _NB_REG_PARMS
  44. {
  45. DWORD MaxNames;
  46. DWORD MaxSessions;
  47. DWORD SmallBuffSize;
  48. DWORD MaxDynMem;
  49. DWORD MulticastForwardRate;
  50. DWORD RemoteListen;
  51. DWORD BcastEnabled;
  52. DWORD NameUpdateTime;
  53. DWORD MaxDgBufferedPerGn;
  54. DWORD RcvDgSubmittedPerGn;
  55. DWORD DisMcastWhenSessTraffic;
  56. DWORD MaxBcastDgBuffered;
  57. DWORD NumRecvQryIndications;
  58. DWORD EnableSessAuditing;
  59. DWORD MaxLanNets; // nr of available lan nets
  60. } NB_REG_PARMS, *PNB_REG_PARMS;
  61. //
  62. // Parameter descriptor
  63. //
  64. typedef struct _NB_PARAM_DESCRIPTOR
  65. {
  66. LPSTR p_namep;
  67. LPDWORD p_valuep;
  68. DWORD p_default;
  69. DWORD p_min;
  70. DWORD p_max;
  71. } NB_PARAM_DESCRIPTOR, *PNB_PARAM_DESCRIPTOR;
  72. #define DEF_ENABLEBROADCAST 0
  73. #define MIN_ENABLEBROADCAST 0
  74. #define MAX_ENABLEBROADCAST 1
  75. #define DEF_MAXDYNMEM 655350
  76. #define MIN_MAXDYNMEM 131072
  77. #define MAX_MAXDYNMEM 0xFFFFFFFF
  78. #define DEF_MAXNAMES 0xFF
  79. #define MIN_MAXNAMES 1
  80. #define MAX_MAXNAMES 0xFF
  81. #define DEF_MAXSESSIONS 0xFF
  82. #define MIN_MAXSESSIONS 1
  83. #define MAX_MAXSESSIONS 0xFF
  84. #define DEF_MULTICASTFORWARDRATE 5
  85. #define MIN_MULTICASTFORWARDRATE 0
  86. #define MAX_MULTICASTFORWARDRATE 0xFFFFFFFF
  87. #define DEF_SIZWORKBUF 4500
  88. #define MIN_SIZWORKBUF 1024
  89. #define MAX_SIZWORKBUF 65536
  90. #define LISTEN_NONE 0
  91. #define LISTEN_MESSAGES 1
  92. #define LISTEN_ALL 2
  93. #define DEF_REMOTELISTEN LISTEN_MESSAGES
  94. #define MIN_REMOTELISTEN LISTEN_NONE
  95. #define MAX_REMOTELISTEN LISTEN_ALL
  96. #define DEF_NAMEUPDATETIME 120
  97. #define MIN_NAMEUPDATETIME 10
  98. #define MAX_NAMEUPDATETIME 3600
  99. #define DEF_MAXDGBUFFEREDPERGROUPNAME 10
  100. #define MIN_MAXDGBUFFEREDPERGROUPNAME 1
  101. #define MAX_MAXDGBUFFEREDPERGROUPNAME 0xFF
  102. #define DEF_RCVDGSUBMITTEDPERGROUPNAME 3
  103. #define MIN_RCVDGSUBMITTEDPERGROUPNAME 1
  104. #define MAX_RCVDGSUBMITTEDPERGROUPNAME 32
  105. #define DEF_DISMCASTWHENSESSTRAFFIC 1
  106. #define MIN_DISMCASTWHENSESSTRAFFIC 0
  107. #define MAX_DISMCASTWHENSESSTRAFFIC 1
  108. #define DEF_MAXBCASTDGBUFFERED 32
  109. #define MIN_MAXBCASTDGBUFFERED 16
  110. #define MAX_MAXBCASTDGBUFFERED 0xFF
  111. #define DEF_NUMRECVQUERYINDICATIONS 3
  112. #define MIN_NUMRECVQUERYINDICATIONS 1
  113. #define MAX_NUMRECVQUERYINDICATIONS 32
  114. #define DEF_ENABLENBSESSIONSAUDITING 0
  115. #define MIN_ENABLENBSESSIONSAUDITING 0
  116. #define MAX_ENABLENBSESSIONSAUDITING 1
  117. #endif