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.

171 lines
3.6 KiB

  1. /*
  2. File netcfgdb.h
  3. Implements a database abstraction on top of the net config
  4. items needed by the ras server ui for connections.
  5. Paul Mayfield, 12/15/97
  6. */
  7. #ifndef _rassrvui_netcfg_h
  8. #define _rassrvui_netcfg_h
  9. //
  10. // Network component types
  11. //
  12. #define NETCFGDB_SERVICE 0x1
  13. #define NETCFGDB_CLIENT 0x2
  14. #define NETCFGDB_PROTOCOL 0x4
  15. //
  16. // Identifiers for net components.
  17. //
  18. // These will be sorted in numerical order
  19. // of these identifiers.
  20. //
  21. #define NETCFGDB_ID_IP 0x1
  22. #define NETCFGDB_ID_IPX 0x2
  23. #define NETCFGDB_ID_NETBUI 0x4
  24. #define NETCFGDB_ID_ARAP 0x8
  25. #define NETCFGDB_ID_FILEPRINT 0x10
  26. #define NETCFGDB_ID_OTHER 0xf0000000
  27. //
  28. // Parameters that can be set for tcpip on the dialin
  29. // server.
  30. //
  31. #define TCPIP_ADDR_LEN 20
  32. typedef struct _TCPIP_PARAMS
  33. {
  34. DWORD dwPoolStart; // Start ip addr of the static pool (host order)
  35. DWORD dwPoolEnd; // End ip addr of the static pool (host order)
  36. BOOL bCaller; // Whether caller can specify addr
  37. BOOL bUseDhcp; // TRUE = Use dhcp to assign addr
  38. // FALSE = Use a pool to assign addr
  39. } TCPIP_PARAMS;
  40. // Parameters that can be set for Ipx on the dialin
  41. // server.
  42. //
  43. typedef struct _IPX_PARAMS
  44. {
  45. DWORD dwIpxAddress; // Beginning ipx address to allocate
  46. BOOL bCaller; // Whether to allow the caller to specify addr
  47. BOOL bAutoAssign; // Whether to automatically assign node nums
  48. BOOL bGlobalWan; // Whether to assign same net node to all clients
  49. } IPX_PARAMS;
  50. DWORD
  51. netDbOpen (
  52. OUT HANDLE * phNetCompDatabase,
  53. IN PWCHAR pszClientName);
  54. DWORD
  55. netDbClose (
  56. IN HANDLE hNetCompDatabase);
  57. DWORD
  58. netDbFlush (
  59. IN HANDLE hNetCompDatabase);
  60. DWORD
  61. netDbLoad (
  62. IN HANDLE hNetCompDatabase);
  63. DWORD
  64. netDbReload (
  65. IN HANDLE hNetCompDatabase);
  66. DWORD
  67. netDbReloadComponent (
  68. IN HANDLE hNetCompDatabase,
  69. IN DWORD dwComponentId);
  70. DWORD
  71. netDbRollback (
  72. IN HANDLE hNetCompDatabase);
  73. BOOL
  74. netDbIsLoaded(
  75. IN HANDLE hNetCompDatabase);
  76. DWORD
  77. netDbGetCompCount(
  78. IN HANDLE hNetCompDatabase,
  79. OUT LPDWORD lpdwCount);
  80. DWORD
  81. netDbGetName(
  82. IN HANDLE hNetCompDatabase,
  83. IN DWORD dwIndex,
  84. OUT PWCHAR* pszName);
  85. DWORD
  86. netDbGetDesc(
  87. IN HANDLE hNetCompDatabase,
  88. IN DWORD dwIndex,
  89. OUT PWCHAR* pszName);
  90. DWORD
  91. netDbGetType(
  92. IN HANDLE hNetCompDatabase,
  93. IN DWORD dwIndex,
  94. OUT LPDWORD lpdwType);
  95. DWORD
  96. netDbGetId(
  97. IN HANDLE hNetCompDatabase,
  98. IN DWORD dwIndex,
  99. OUT LPDWORD lpdwId);
  100. DWORD
  101. netDbGetEnable(
  102. IN HANDLE hNetCompDatabase,
  103. IN DWORD dwIndex,
  104. OUT PBOOL pbEnabled);
  105. DWORD
  106. netDbSetEnable(
  107. IN HANDLE hNetCompDatabase,
  108. IN DWORD dwIndex,
  109. IN BOOL bEnabled);
  110. DWORD
  111. netDbIsRasManipulatable(
  112. IN HANDLE hNetCompDatabase,
  113. IN DWORD dwIndex,
  114. OUT PBOOL pbManip);
  115. //For whistler bug 347355
  116. //
  117. DWORD
  118. netDbHasRemovePermission(
  119. IN HANDLE hNetCompDatabase,
  120. IN DWORD dwIndex,
  121. OUT PBOOL pbHasPermit);
  122. DWORD
  123. netDbHasPropertiesUI(
  124. IN HANDLE hNetCompDatabase,
  125. IN DWORD dwIndex,
  126. OUT PBOOL pbHasUi);
  127. DWORD
  128. netDbRaisePropertiesDialog(
  129. IN HANDLE hNetCompDatabase,
  130. IN DWORD dwIndex,
  131. IN HWND hwndParent);
  132. DWORD
  133. netDbRaiseInstallDialog(
  134. IN HANDLE hNetCompDatabase,
  135. IN HWND hwndParent);
  136. DWORD
  137. netDbRaiseRemoveDialog(
  138. IN HANDLE hNetCompDatabase,
  139. IN DWORD dwIndex,
  140. IN HWND hwndParent);
  141. #endif