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.

1054 lines
38 KiB

  1. /*++ BUILD Version: 0007 // Increment this if a change has global effects
  2. Copyright (c) 1990-1993 Microsoft Corporation
  3. Module Name:
  4. lmserver.h
  5. Abstract:
  6. This file contains information about NetServer APIs.
  7. Function Prototypes
  8. Data Structures
  9. Definition of special values
  10. Author:
  11. Dan Lafferty (danl) 24-Jan-1991
  12. Environment:
  13. User Mode - Win32
  14. Notes:
  15. You must include NETCONS.H before this file, since this file depends
  16. on values defined in NETCONS.H.
  17. Revision History:
  18. 25-Jan-1991 Danl
  19. Ported from LM2.0
  20. 12-Feb-1991 danl
  21. Changed info levels to match current spec - no more info level 3.
  22. 14-Apr-1991 w-shanku
  23. Changed parmnum constants to be more consistent with OS/2 parmnums.
  24. 19-Apr-1991 JohnRo
  25. Added OPTIONAL keywords to APIs. Added SV_MAX_SRV_HEUR_LEN from LM 2.x
  26. 09-May-1991 JohnRo
  27. Implement UNICODE.
  28. 22-May-1991 JohnRo
  29. Added three new SV_TYPE equates from LM 2.x source.
  30. 23-May-1991 JohnRo
  31. Added sv403_autopath.
  32. 26-May-1991 JohnRo
  33. Corrected value of SV_ERRORALERT_PARMNUM.
  34. 18-Jun-1991 JohnRo
  35. Changed sv102_disc to be signed, and changed SV_NODISC to be 32-bits.
  36. Added sv102_licenses.
  37. 03-May-1993 JohnRo
  38. Added correct name of SV_TYPE_SERVER_UNIX as alias for
  39. SV_TYPE_XENIX_SERVER (the name as someone accidentally defined for NT).
  40. --*/
  41. #ifndef _LMSERVER_
  42. #define _LMSERVER_
  43. #ifdef __cplusplus
  44. extern "C" {
  45. #endif
  46. #include <winsvc.h> // SERVICE_STATUS_HANDLE
  47. //
  48. // Function Prototypes - SERVER
  49. //
  50. NET_API_STATUS NET_API_FUNCTION
  51. NetServerEnum (
  52. IN LPTSTR servername OPTIONAL,
  53. IN DWORD level,
  54. OUT LPBYTE *bufptr,
  55. IN DWORD prefmaxlen,
  56. OUT LPDWORD entriesread,
  57. OUT LPDWORD totalentries,
  58. IN DWORD servertype,
  59. IN LPTSTR domain OPTIONAL,
  60. IN OUT LPDWORD resume_handle OPTIONAL
  61. );
  62. NET_API_STATUS NET_API_FUNCTION
  63. NetServerGetInfo (
  64. IN LPTSTR servername OPTIONAL,
  65. IN DWORD level,
  66. OUT LPBYTE *bufptr
  67. );
  68. NET_API_STATUS NET_API_FUNCTION
  69. NetServerSetInfo (
  70. IN LPTSTR servername OPTIONAL,
  71. IN DWORD level,
  72. IN LPBYTE buf,
  73. OUT LPDWORD ParmError OPTIONAL
  74. );
  75. //
  76. // Temporary hack function.
  77. //
  78. NET_API_STATUS
  79. NetServerSetInfoCommandLine (
  80. IN WORD argc,
  81. IN LPTSTR argv[]
  82. );
  83. NET_API_STATUS NET_API_FUNCTION
  84. NetServerDiskEnum (
  85. IN LPTSTR servername OPTIONAL,
  86. IN DWORD level,
  87. OUT LPBYTE *bufptr,
  88. IN DWORD prefmaxlen,
  89. OUT LPDWORD entriesread,
  90. OUT LPDWORD totalentries,
  91. IN OUT LPDWORD resume_handle OPTIONAL
  92. );
  93. NET_API_STATUS NET_API_FUNCTION
  94. NetServerTransportAdd (
  95. IN LPTSTR servername,
  96. IN DWORD level,
  97. IN LPBYTE bufptr
  98. );
  99. NET_API_STATUS NET_API_FUNCTION
  100. NetServerTransportDel (
  101. IN LPTSTR servername,
  102. IN DWORD level,
  103. IN LPBYTE bufptr
  104. );
  105. NET_API_STATUS NET_API_FUNCTION
  106. NetServerTransportEnum (
  107. IN LPTSTR servername,
  108. IN DWORD level,
  109. OUT LPBYTE *bufptr,
  110. IN DWORD prefmaxlen,
  111. OUT LPDWORD entriesread,
  112. OUT LPDWORD totalentries,
  113. IN OUT LPDWORD resumehandle
  114. );
  115. //
  116. // The following function can be called by Win NT services to register
  117. // their service type. This function is exported from advapi32.dll.
  118. // Therefore, if this is the only function called by that service, then
  119. // it is not necessary to link to netapi32.lib.
  120. //
  121. BOOL
  122. SetServiceBits(
  123. IN SERVICE_STATUS_HANDLE hServiceStatus,
  124. IN DWORD dwServiceBits,
  125. IN BOOL bSetBitsOn,
  126. IN BOOL bUpdateImmediately
  127. );
  128. //
  129. // Data Structures - SERVER
  130. //
  131. typedef struct _SERVER_INFO_100 {
  132. DWORD sv100_platform_id;
  133. LPTSTR sv100_name;
  134. } SERVER_INFO_100, *PSERVER_INFO_100, *LPSERVER_INFO_100;
  135. typedef struct _SERVER_INFO_101 {
  136. DWORD sv101_platform_id;
  137. LPTSTR sv101_name;
  138. DWORD sv101_version_major;
  139. DWORD sv101_version_minor;
  140. DWORD sv101_type;
  141. LPTSTR sv101_comment;
  142. } SERVER_INFO_101, *PSERVER_INFO_101, *LPSERVER_INFO_101;
  143. typedef struct _SERVER_INFO_102 {
  144. DWORD sv102_platform_id;
  145. LPTSTR sv102_name;
  146. DWORD sv102_version_major;
  147. DWORD sv102_version_minor;
  148. DWORD sv102_type;
  149. LPTSTR sv102_comment;
  150. DWORD sv102_users;
  151. LONG sv102_disc;
  152. BOOL sv102_hidden;
  153. DWORD sv102_announce;
  154. DWORD sv102_anndelta;
  155. DWORD sv102_licenses;
  156. LPTSTR sv102_userpath;
  157. } SERVER_INFO_102, *PSERVER_INFO_102, *LPSERVER_INFO_102;
  158. typedef struct _SERVER_INFO_402 {
  159. DWORD sv402_ulist_mtime;
  160. DWORD sv402_glist_mtime;
  161. DWORD sv402_alist_mtime;
  162. LPTSTR sv402_alerts;
  163. DWORD sv402_security;
  164. DWORD sv402_numadmin;
  165. DWORD sv402_lanmask;
  166. LPTSTR sv402_guestacct;
  167. DWORD sv402_chdevs;
  168. DWORD sv402_chdevq;
  169. DWORD sv402_chdevjobs;
  170. DWORD sv402_connections;
  171. DWORD sv402_shares;
  172. DWORD sv402_openfiles;
  173. DWORD sv402_sessopens;
  174. DWORD sv402_sessvcs;
  175. DWORD sv402_sessreqs;
  176. DWORD sv402_opensearch;
  177. DWORD sv402_activelocks;
  178. DWORD sv402_numreqbuf;
  179. DWORD sv402_sizreqbuf;
  180. DWORD sv402_numbigbuf;
  181. DWORD sv402_numfiletasks;
  182. DWORD sv402_alertsched;
  183. DWORD sv402_erroralert;
  184. DWORD sv402_logonalert;
  185. DWORD sv402_accessalert;
  186. DWORD sv402_diskalert;
  187. DWORD sv402_netioalert;
  188. DWORD sv402_maxauditsz;
  189. LPTSTR sv402_srvheuristics;
  190. } SERVER_INFO_402, *PSERVER_INFO_402, *LPSERVER_INFO_402;
  191. typedef struct _SERVER_INFO_403 {
  192. DWORD sv403_ulist_mtime;
  193. DWORD sv403_glist_mtime;
  194. DWORD sv403_alist_mtime;
  195. LPTSTR sv403_alerts;
  196. DWORD sv403_security;
  197. DWORD sv403_numadmin;
  198. DWORD sv403_lanmask;
  199. LPTSTR sv403_guestacct;
  200. DWORD sv403_chdevs;
  201. DWORD sv403_chdevq;
  202. DWORD sv403_chdevjobs;
  203. DWORD sv403_connections;
  204. DWORD sv403_shares;
  205. DWORD sv403_openfiles;
  206. DWORD sv403_sessopens;
  207. DWORD sv403_sessvcs;
  208. DWORD sv403_sessreqs;
  209. DWORD sv403_opensearch;
  210. DWORD sv403_activelocks;
  211. DWORD sv403_numreqbuf;
  212. DWORD sv403_sizreqbuf;
  213. DWORD sv403_numbigbuf;
  214. DWORD sv403_numfiletasks;
  215. DWORD sv403_alertsched;
  216. DWORD sv403_erroralert;
  217. DWORD sv403_logonalert;
  218. DWORD sv403_accessalert;
  219. DWORD sv403_diskalert;
  220. DWORD sv403_netioalert;
  221. DWORD sv403_maxauditsz;
  222. LPTSTR sv403_srvheuristics;
  223. DWORD sv403_auditedevents;
  224. DWORD sv403_autoprofile;
  225. LPTSTR sv403_autopath;
  226. } SERVER_INFO_403, *PSERVER_INFO_403, *LPSERVER_INFO_403;
  227. typedef struct _SERVER_INFO_502 {
  228. DWORD sv502_sessopens;
  229. DWORD sv502_sessvcs;
  230. DWORD sv502_opensearch;
  231. DWORD sv502_sizreqbuf;
  232. DWORD sv502_initworkitems;
  233. DWORD sv502_maxworkitems;
  234. DWORD sv502_rawworkitems;
  235. DWORD sv502_irpstacksize;
  236. DWORD sv502_maxrawbuflen;
  237. DWORD sv502_sessusers;
  238. DWORD sv502_sessconns;
  239. DWORD sv502_maxpagedmemoryusage;
  240. DWORD sv502_maxnonpagedmemoryusage;
  241. BOOL sv502_enablesoftcompat;
  242. BOOL sv502_enableforcedlogoff;
  243. BOOL sv502_timesource;
  244. BOOL sv502_acceptdownlevelapis;
  245. BOOL sv502_lmannounce;
  246. } SERVER_INFO_502, *PSERVER_INFO_502, *LPSERVER_INFO_502;
  247. typedef struct _SERVER_INFO_503 {
  248. DWORD sv503_sessopens;
  249. DWORD sv503_sessvcs;
  250. DWORD sv503_opensearch;
  251. DWORD sv503_sizreqbuf;
  252. DWORD sv503_initworkitems;
  253. DWORD sv503_maxworkitems;
  254. DWORD sv503_rawworkitems;
  255. DWORD sv503_irpstacksize;
  256. DWORD sv503_maxrawbuflen;
  257. DWORD sv503_sessusers;
  258. DWORD sv503_sessconns;
  259. DWORD sv503_maxpagedmemoryusage;
  260. DWORD sv503_maxnonpagedmemoryusage;
  261. BOOL sv503_enablesoftcompat;
  262. BOOL sv503_enableforcedlogoff;
  263. BOOL sv503_timesource;
  264. BOOL sv503_acceptdownlevelapis;
  265. BOOL sv503_lmannounce;
  266. LPTSTR sv503_domain;
  267. DWORD sv503_maxcopyreadlen;
  268. DWORD sv503_maxcopywritelen;
  269. DWORD sv503_minkeepsearch;
  270. DWORD sv503_maxkeepsearch;
  271. DWORD sv503_minkeepcomplsearch;
  272. DWORD sv503_maxkeepcomplsearch;
  273. DWORD sv503_threadcountadd;
  274. DWORD sv503_numblockthreads;
  275. DWORD sv503_scavtimeout;
  276. DWORD sv503_minrcvqueue;
  277. DWORD sv503_minfreeworkitems;
  278. DWORD sv503_xactmemsize;
  279. DWORD sv503_threadpriority;
  280. DWORD sv503_maxmpxct;
  281. DWORD sv503_oplockbreakwait;
  282. DWORD sv503_oplockbreakresponsewait;
  283. BOOL sv503_enableoplocks;
  284. BOOL sv503_enableoplockforceclose;
  285. BOOL sv503_enablefcbopens;
  286. BOOL sv503_enableraw;
  287. BOOL sv503_enablesharednetdrives;
  288. DWORD sv503_minfreeconnections;
  289. DWORD sv503_maxfreeconnections;
  290. } SERVER_INFO_503, *PSERVER_INFO_503, *LPSERVER_INFO_503;
  291. typedef struct _SERVER_INFO_599 {
  292. DWORD sv599_sessopens;
  293. DWORD sv599_sessvcs;
  294. DWORD sv599_opensearch;
  295. DWORD sv599_sizreqbuf;
  296. DWORD sv599_initworkitems;
  297. DWORD sv599_maxworkitems;
  298. DWORD sv599_rawworkitems;
  299. DWORD sv599_irpstacksize;
  300. DWORD sv599_maxrawbuflen;
  301. DWORD sv599_sessusers;
  302. DWORD sv599_sessconns;
  303. DWORD sv599_maxpagedmemoryusage;
  304. DWORD sv599_maxnonpagedmemoryusage;
  305. BOOL sv599_enablesoftcompat;
  306. BOOL sv599_enableforcedlogoff;
  307. BOOL sv599_timesource;
  308. BOOL sv599_acceptdownlevelapis;
  309. BOOL sv599_lmannounce;
  310. LPTSTR sv599_domain;
  311. DWORD sv599_maxcopyreadlen;
  312. DWORD sv599_maxcopywritelen;
  313. DWORD sv599_minkeepsearch;
  314. DWORD sv599_maxkeepsearch;
  315. DWORD sv599_minkeepcomplsearch;
  316. DWORD sv599_maxkeepcomplsearch;
  317. DWORD sv599_threadcountadd;
  318. DWORD sv599_numblockthreads;
  319. DWORD sv599_scavtimeout;
  320. DWORD sv599_minrcvqueue;
  321. DWORD sv599_minfreeworkitems;
  322. DWORD sv599_xactmemsize;
  323. DWORD sv599_threadpriority;
  324. DWORD sv599_maxmpxct;
  325. DWORD sv599_oplockbreakwait;
  326. DWORD sv599_oplockbreakresponsewait;
  327. BOOL sv599_enableoplocks;
  328. BOOL sv599_enableoplockforceclose;
  329. BOOL sv599_enablefcbopens;
  330. BOOL sv599_enableraw;
  331. BOOL sv599_enablesharednetdrives;
  332. DWORD sv599_minfreeconnections;
  333. DWORD sv599_maxfreeconnections;
  334. DWORD sv599_initsesstable;
  335. DWORD sv599_initconntable;
  336. DWORD sv599_initfiletable;
  337. DWORD sv599_initsearchtable;
  338. DWORD sv599_alertschedule;
  339. DWORD sv599_errorthreshold;
  340. DWORD sv599_networkerrorthreshold;
  341. DWORD sv599_diskspacethreshold;
  342. DWORD sv599_diskconfiguration;
  343. DWORD sv599_maxlinkdelay;
  344. DWORD sv599_minlinkthroughput;
  345. DWORD sv599_linkinfovalidtime;
  346. DWORD sv599_scavqosinfoupdatetime;
  347. DWORD sv599_maxworkitemidletime;
  348. } SERVER_INFO_599, *PSERVER_INFO_599, *LPSERVER_INFO_599;
  349. typedef struct _SERVER_INFO_598 {
  350. DWORD sv598_maxrawworkitems;
  351. DWORD sv598_nonblockingthreads;
  352. DWORD sv598_blockingthreads;
  353. DWORD sv598_producttype;
  354. DWORD sv598_serversize;
  355. DWORD sv598_connectionlessautodisc;
  356. DWORD sv598_sharingviolationretries;
  357. DWORD sv598_sharingviolationdelay;
  358. DWORD sv598_maxglobalopensearch;
  359. DWORD sv598_removeduplicatesearches;
  360. DWORD sv598_lockviolationoffset;
  361. DWORD sv598_lockviolationdelay;
  362. DWORD sv598_mdlreadswitchover;
  363. DWORD sv598_reserved4;
  364. DWORD sv598_reserved5;
  365. DWORD sv598_reserved6;
  366. DWORD sv598_reserved7;
  367. DWORD sv598_reserved8;
  368. DWORD sv598_reserved9;
  369. DWORD sv598_reserved10;
  370. } SERVER_INFO_598, *PSERVER_INFO_598, *LPSERVER_INFO_598;
  371. typedef struct _SERVER_INFO_1005 {
  372. LPTSTR sv1005_comment;
  373. } SERVER_INFO_1005, *PSERVER_INFO_1005, *LPSERVER_INFO_1005;
  374. typedef struct _SERVER_INFO_1107 {
  375. DWORD sv1107_users;
  376. } SERVER_INFO_1107, *PSERVER_INFO_1107, *LPSERVER_INFO_1107;
  377. typedef struct _SERVER_INFO_1010 {
  378. LONG sv1010_disc;
  379. } SERVER_INFO_1010, *PSERVER_INFO_1010, *LPSERVER_INFO_1010;
  380. typedef struct _SERVER_INFO_1016 {
  381. BOOL sv1016_hidden;
  382. } SERVER_INFO_1016, *PSERVER_INFO_1016, *LPSERVER_INFO_1016;
  383. typedef struct _SERVER_INFO_1017 {
  384. DWORD sv1017_announce;
  385. } SERVER_INFO_1017, *PSERVER_INFO_1017, *LPSERVER_INFO_1017;
  386. typedef struct _SERVER_INFO_1018 {
  387. DWORD sv1018_anndelta;
  388. } SERVER_INFO_1018, *PSERVER_INFO_1018, *LPSERVER_INFO_1018;
  389. typedef struct _SERVER_INFO_1501 {
  390. DWORD sv1501_sessopens;
  391. } SERVER_INFO_1501, *PSERVER_INFO_1501, *LPSERVER_INFO_1501;
  392. typedef struct _SERVER_INFO_1502 {
  393. DWORD sv1502_sessvcs;
  394. } SERVER_INFO_1502, *PSERVER_INFO_1502, *LPSERVER_INFO_1502;
  395. typedef struct _SERVER_INFO_1503 {
  396. DWORD sv1503_opensearch;
  397. } SERVER_INFO_1503, *PSERVER_INFO_1503, *LPSERVER_INFO_1503;
  398. typedef struct _SERVER_INFO_1506 {
  399. DWORD sv1506_maxworkitems;
  400. } SERVER_INFO_1506, *PSERVER_INFO_1506, *LPSERVER_INFO_1506;
  401. typedef struct _SERVER_INFO_1509 {
  402. DWORD sv1509_maxrawbuflen;
  403. } SERVER_INFO_1509, *PSERVER_INFO_1509, *LPSERVER_INFO_1509;
  404. typedef struct _SERVER_INFO_1510 {
  405. DWORD sv1510_sessusers;
  406. } SERVER_INFO_1510, *PSERVER_INFO_1510, *LPSERVER_INFO_1510;
  407. typedef struct _SERVER_INFO_1511 {
  408. DWORD sv1511_sessconns;
  409. } SERVER_INFO_1511, *PSERVER_INFO_1511, *LPSERVER_INFO_1511;
  410. typedef struct _SERVER_INFO_1512 {
  411. DWORD sv1512_maxnonpagedmemoryusage;
  412. } SERVER_INFO_1512, *PSERVER_INFO_1512, *LPSERVER_INFO_1512;
  413. typedef struct _SERVER_INFO_1513 {
  414. DWORD sv1513_maxpagedmemoryusage;
  415. } SERVER_INFO_1513, *PSERVER_INFO_1513, *LPSERVER_INFO_1513;
  416. typedef struct _SERVER_INFO_1514 {
  417. BOOL sv1514_enablesoftcompat;
  418. } SERVER_INFO_1514, *PSERVER_INFO_1514, *LPSERVER_INFO_1514;
  419. typedef struct _SERVER_INFO_1515 {
  420. BOOL sv1515_enableforcedlogoff;
  421. } SERVER_INFO_1515, *PSERVER_INFO_1515, *LPSERVER_INFO_1515;
  422. typedef struct _SERVER_INFO_1516 {
  423. BOOL sv1516_timesource;
  424. } SERVER_INFO_1516, *PSERVER_INFO_1516, *LPSERVER_INFO_1516;
  425. typedef struct _SERVER_INFO_1518 {
  426. BOOL sv1518_lmannounce;
  427. } SERVER_INFO_1518, *PSERVER_INFO_1518, *LPSERVER_INFO_1518;
  428. typedef struct _SERVER_INFO_1520 {
  429. DWORD sv1520_maxcopyreadlen;
  430. } SERVER_INFO_1520, *PSERVER_INFO_1520, *LPSERVER_INFO_1520;
  431. typedef struct _SERVER_INFO_1521 {
  432. DWORD sv1521_maxcopywritelen;
  433. } SERVER_INFO_1521, *PSERVER_INFO_1521, *LPSERVER_INFO_1521;
  434. typedef struct _SERVER_INFO_1522 {
  435. DWORD sv1522_minkeepsearch;
  436. } SERVER_INFO_1522, *PSERVER_INFO_1522, *LPSERVER_INFO_1522;
  437. typedef struct _SERVER_INFO_1523 {
  438. DWORD sv1523_maxkeepsearch;
  439. } SERVER_INFO_1523, *PSERVER_INFO_1523, *LPSERVER_INFO_1523;
  440. typedef struct _SERVER_INFO_1524 {
  441. DWORD sv1524_minkeepcomplsearch;
  442. } SERVER_INFO_1524, *PSERVER_INFO_1524, *LPSERVER_INFO_1524;
  443. typedef struct _SERVER_INFO_1525 {
  444. DWORD sv1525_maxkeepcomplsearch;
  445. } SERVER_INFO_1525, *PSERVER_INFO_1525, *LPSERVER_INFO_1525;
  446. typedef struct _SERVER_INFO_1528 {
  447. DWORD sv1528_scavtimeout;
  448. } SERVER_INFO_1528, *PSERVER_INFO_1528, *LPSERVER_INFO_1528;
  449. typedef struct _SERVER_INFO_1529 {
  450. DWORD sv1529_minrcvqueue;
  451. } SERVER_INFO_1529, *PSERVER_INFO_1529, *LPSERVER_INFO_1529;
  452. typedef struct _SERVER_INFO_1530 {
  453. DWORD sv1530_minfreeworkitems;
  454. } SERVER_INFO_1530, *PSERVER_INFO_1530, *LPSERVER_INFO_1530;
  455. typedef struct _SERVER_INFO_1533 {
  456. DWORD sv1533_maxmpxct;
  457. } SERVER_INFO_1533, *PSERVER_INFO_1533, *LPSERVER_INFO_1533;
  458. typedef struct _SERVER_INFO_1534 {
  459. DWORD sv1534_oplockbreakwait;
  460. } SERVER_INFO_1534, *PSERVER_INFO_1534, *LPSERVER_INFO_1534;
  461. typedef struct _SERVER_INFO_1535 {
  462. DWORD sv1535_oplockbreakresponsewait;
  463. } SERVER_INFO_1535, *PSERVER_INFO_1535, *LPSERVER_INFO_1535;
  464. typedef struct _SERVER_INFO_1536 {
  465. BOOL sv1536_enableoplocks;
  466. } SERVER_INFO_1536, *PSERVER_INFO_1536, *LPSERVER_INFO_1536;
  467. typedef struct _SERVER_INFO_1537 {
  468. BOOL sv1537_enableoplockforceclose;
  469. } SERVER_INFO_1537, *PSERVER_INFO_1537, *LPSERVER_INFO_1537;
  470. typedef struct _SERVER_INFO_1538 {
  471. BOOL sv1538_enablefcbopens;
  472. } SERVER_INFO_1538, *PSERVER_INFO_1538, *LPSERVER_INFO_1538;
  473. typedef struct _SERVER_INFO_1539 {
  474. BOOL sv1539_enableraw;
  475. } SERVER_INFO_1539, *PSERVER_INFO_1539, *LPSERVER_INFO_1539;
  476. typedef struct _SERVER_INFO_1540 {
  477. BOOL sv1540_enablesharednetdrives;
  478. } SERVER_INFO_1540, *PSERVER_INFO_1540, *LPSERVER_INFO_1540;
  479. typedef struct _SERVER_INFO_1541 {
  480. BOOL sv1541_minfreeconnections;
  481. } SERVER_INFO_1541, *PSERVER_INFO_1541, *LPSERVER_INFO_1541;
  482. typedef struct _SERVER_INFO_1542 {
  483. BOOL sv1542_maxfreeconnections;
  484. } SERVER_INFO_1542, *PSERVER_INFO_1542, *LPSERVER_INFO_1542;
  485. typedef struct _SERVER_INFO_1543 {
  486. DWORD sv1543_initsesstable;
  487. } SERVER_INFO_1543, *PSERVER_INFO_1543, *LPSERVER_INFO_1543;
  488. typedef struct _SERVER_INFO_1544 {
  489. DWORD sv1544_initconntable;
  490. } SERVER_INFO_1544, *PSERVER_INFO_1544, *LPSERVER_INFO_1544;
  491. typedef struct _SERVER_INFO_1545 {
  492. DWORD sv1545_initfiletable;
  493. } SERVER_INFO_1545, *PSERVER_INFO_1545, *LPSERVER_INFO_1545;
  494. typedef struct _SERVER_INFO_1546 {
  495. DWORD sv1546_initsearchtable;
  496. } SERVER_INFO_1546, *PSERVER_INFO_1546, *LPSERVER_INFO_1546;
  497. typedef struct _SERVER_INFO_1547 {
  498. DWORD sv1547_alertschedule;
  499. } SERVER_INFO_1547, *PSERVER_INFO_1547, *LPSERVER_INFO_1547;
  500. typedef struct _SERVER_INFO_1548 {
  501. DWORD sv1548_errorthreshold;
  502. } SERVER_INFO_1548, *PSERVER_INFO_1548, *LPSERVER_INFO_1548;
  503. typedef struct _SERVER_INFO_1549 {
  504. DWORD sv1549_networkerrorthreshold;
  505. } SERVER_INFO_1549, *PSERVER_INFO_1549, *LPSERVER_INFO_1549;
  506. typedef struct _SERVER_INFO_1550 {
  507. DWORD sv1550_diskspacethreshold;
  508. } SERVER_INFO_1550, *PSERVER_INFO_1550, *LPSERVER_INFO_1550;
  509. typedef struct _SERVER_INFO_1552 {
  510. DWORD sv1552_maxlinkdelay;
  511. } SERVER_INFO_1552, *PSERVER_INFO_1552, *LPSERVER_INFO_1552;
  512. typedef struct _SERVER_INFO_1553 {
  513. DWORD sv1553_minlinkthroughput;
  514. } SERVER_INFO_1553, *PSERVER_INFO_1553, *LPSERVER_INFO_1553;
  515. typedef struct _SERVER_INFO_1554 {
  516. DWORD sv1554_linkinfovalidtime;
  517. } SERVER_INFO_1554, *PSERVER_INFO_1554, *LPSERVER_INFO_1554;
  518. typedef struct _SERVER_INFO_1555 {
  519. DWORD sv1555_scavqosinfoupdatetime;
  520. } SERVER_INFO_1555, *PSERVER_INFO_1555, *LPSERVER_INFO_1555;
  521. typedef struct _SERVER_INFO_1556 {
  522. DWORD sv1556_maxworkitemidletime;
  523. } SERVER_INFO_1556, *PSERVER_INFO_1556, *LPSERVER_INFO_1556;
  524. typedef struct _SERVER_INFO_1557 {
  525. DWORD sv1557_maxrawworkitems;
  526. } SERVER_INFO_1557, *PSERVER_INFO_1557, *LPSERVER_INFO_1557;
  527. typedef struct _SERVER_INFO_1558 {
  528. DWORD sv1558_nonblockingthreads;
  529. } SERVER_INFO_1558, *PSERVER_INFO_1558, *LPSERVER_INFO_1558;
  530. typedef struct _SERVER_INFO_1559 {
  531. DWORD sv1559_blockingthreads;
  532. } SERVER_INFO_1559, *PSERVER_INFO_1559, *LPSERVER_INFO_1559;
  533. typedef struct _SERVER_INFO_1560 {
  534. DWORD sv1560_producttype;
  535. } SERVER_INFO_1560, *PSERVER_INFO_1560, *LPSERVER_INFO_1560;
  536. typedef struct _SERVER_INFO_1561 {
  537. DWORD sv1561_serversize;
  538. } SERVER_INFO_1561, *PSERVER_INFO_1561, *LPSERVER_INFO_1561;
  539. typedef struct _SERVER_INFO_1562 {
  540. DWORD sv1562_connectionlessautodisc;
  541. } SERVER_INFO_1562, *PSERVER_INFO_1562, *LPSERVER_INFO_1562;
  542. typedef struct _SERVER_INFO_1563 {
  543. DWORD sv1563_sharingviolationretries;
  544. } SERVER_INFO_1563, *PSERVER_INFO_1563, *LPSERVER_INFO_1563;
  545. typedef struct _SERVER_INFO_1564 {
  546. DWORD sv1564_sharingviolationdelay;
  547. } SERVER_INFO_1564, *PSERVER_INFO_1564, *LPSERVER_INFO_1564;
  548. typedef struct _SERVER_INFO_1565 {
  549. DWORD sv1565_maxglobalopensearch;
  550. } SERVER_INFO_1565, *PSERVER_INFO_1565, *LPSERVER_INFO_1565;
  551. typedef struct _SERVER_INFO_1566 {
  552. BOOL sv1566_removeduplicatesearches;
  553. } SERVER_INFO_1566, *PSERVER_INFO_1566, *LPSERVER_INFO_1566;
  554. typedef struct _SERVER_INFO_1567 {
  555. DWORD sv1567_lockviolationretries;
  556. } SERVER_INFO_1567, *PSERVER_INFO_1567, *LPSERVER_INFO_1567;
  557. typedef struct _SERVER_INFO_1568 {
  558. DWORD sv1568_lockviolationoffset;
  559. } SERVER_INFO_1568, *PSERVER_INFO_1568, *LPSERVER_INFO_1568;
  560. typedef struct _SERVER_INFO_1569 {
  561. DWORD sv1569_lockviolationdelay;
  562. } SERVER_INFO_1569, *PSERVER_INFO_1569, *LPSERVER_INFO_1569;
  563. typedef struct _SERVER_INFO_1570 {
  564. DWORD sv1570_mdlreadswitchover;
  565. } SERVER_INFO_1570, *PSERVER_INFO_1570, *LPSERVER_INFO_1570;
  566. //
  567. // A special structure definition is required in order for this
  568. // structure to work with RPC. The problem is that having addresslength
  569. // indicate the number of bytes in address means that RPC must know the
  570. // link between the two.
  571. //
  572. #ifdef MIDL_PASS
  573. typedef struct _SERVER_TRANSPORT_INFO_0 {
  574. DWORD svti0_numberofvcs;
  575. LPTSTR svti0_transportname;
  576. [size_is(svti0_transportaddresslength)] LPBYTE svti0_transportaddress;
  577. DWORD svti0_transportaddresslength;
  578. LPTSTR svti0_networkaddress;
  579. } SERVER_TRANSPORT_INFO_0, *PSERVER_TRANSPORT_INFO_0, *LPSERVER_TRANSPORT_INFO_0;
  580. #else
  581. typedef struct _SERVER_TRANSPORT_INFO_0 {
  582. DWORD svti0_numberofvcs;
  583. LPTSTR svti0_transportname;
  584. LPBYTE svti0_transportaddress;
  585. DWORD svti0_transportaddresslength;
  586. LPTSTR svti0_networkaddress;
  587. } SERVER_TRANSPORT_INFO_0, *PSERVER_TRANSPORT_INFO_0, *LPSERVER_TRANSPORT_INFO_0;
  588. #endif
  589. //
  590. // Defines - SERVER
  591. //
  592. //
  593. // The platform ID indicates the levels to use for platform-specific
  594. // information.
  595. //
  596. #define SV_PLATFORM_ID_OS2 400
  597. #define SV_PLATFORM_ID_NT 500
  598. //
  599. // Mask to be applied to svX_version_major in order to obtain
  600. // the major version number.
  601. //
  602. #define MAJOR_VERSION_MASK 0x0F
  603. //
  604. // Bit-mapped values for svX_type fields. X = 1, 2 or 3.
  605. //
  606. #define SV_TYPE_WORKSTATION 0x00000001
  607. #define SV_TYPE_SERVER 0x00000002
  608. #define SV_TYPE_SQLSERVER 0x00000004
  609. #define SV_TYPE_DOMAIN_CTRL 0x00000008
  610. #define SV_TYPE_DOMAIN_BAKCTRL 0x00000010
  611. #define SV_TYPE_TIME_SOURCE 0x00000020
  612. #define SV_TYPE_AFP 0x00000040
  613. #define SV_TYPE_NOVELL 0x00000080
  614. #define SV_TYPE_DOMAIN_MEMBER 0x00000100
  615. #define SV_TYPE_PRINTQ_SERVER 0x00000200
  616. #define SV_TYPE_DIALIN_SERVER 0x00000400
  617. #define SV_TYPE_XENIX_SERVER 0x00000800
  618. #define SV_TYPE_SERVER_UNIX SV_TYPE_XENIX_SERVER
  619. #define SV_TYPE_NT 0x00001000
  620. #define SV_TYPE_WFW 0x00002000
  621. #define SV_TYPE_POTENTIAL_BROWSER 0x00010000
  622. #define SV_TYPE_BACKUP_BROWSER 0x00020000
  623. #define SV_TYPE_MASTER_BROWSER 0x00040000
  624. #define SV_TYPE_DOMAIN_MASTER 0x00080000
  625. #define SV_TYPE_SERVER_OSF 0x00100000
  626. #define SV_TYPE_SERVER_VMS 0x00200000
  627. #define SV_TYPE_ALTERNATE_XPORT 0x20000000 /* return list for alternate transport */
  628. #define SV_TYPE_LOCAL_LIST_ONLY 0x40000000 /* Return local list only */
  629. #define SV_TYPE_DOMAIN_ENUM 0x80000000
  630. #define SV_TYPE_ALL 0xFFFFFFFF /* handy for NetServerEnum2 */
  631. //
  632. // Special value for sv102_disc that specifies infinite disconnect
  633. // time.
  634. //
  635. #define SV_NODISC (-1L) /* No autodisconnect timeout enforced */
  636. //
  637. // Values of svX_security field. X = 2 or 3.
  638. //
  639. #define SV_USERSECURITY 1
  640. #define SV_SHARESECURITY 0
  641. //
  642. // Values of svX_hidden field. X = 2 or 3.
  643. //
  644. #define SV_HIDDEN 1
  645. #define SV_VISIBLE 0
  646. //
  647. // Values for ParmError parameter to NetServerSetInfo.
  648. //
  649. #define SV_PLATFORM_ID_PARMNUM 101
  650. #define SV_NAME_PARMNUM 102
  651. #define SV_VERSION_MAJOR_PARMNUM 103
  652. #define SV_VERSION_MINOR_PARMNUM 104
  653. #define SV_TYPE_PARMNUM 105
  654. #define SV_COMMENT_PARMNUM 5
  655. #define SV_USERS_PARMNUM 107
  656. #define SV_DISC_PARMNUM 10
  657. #define SV_HIDDEN_PARMNUM 16
  658. #define SV_ANNOUNCE_PARMNUM 17
  659. #define SV_ANNDELTA_PARMNUM 18
  660. #define SV_USERPATH_PARMNUM 112
  661. #define SV_ULIST_MTIME_PARMNUM 401
  662. #define SV_GLIST_MTIME_PARMNUM 402
  663. #define SV_ALIST_MTIME_PARMNUM 403
  664. #define SV_ALERTS_PARMNUM 11
  665. #define SV_SECURITY_PARMNUM 405
  666. #define SV_NUMADMIN_PARMNUM 406
  667. #define SV_LANMASK_PARMNUM 407
  668. #define SV_GUESTACC_PARMNUM 408
  669. #define SV_CHDEVQ_PARMNUM 410
  670. #define SV_CHDEVJOBS_PARMNUM 411
  671. #define SV_CONNECTIONS_PARMNUM 412
  672. #define SV_SHARES_PARMNUM 413
  673. #define SV_OPENFILES_PARMNUM 414
  674. #define SV_SESSREQS_PARMNUM 417
  675. #define SV_ACTIVELOCKS_PARMNUM 419
  676. #define SV_NUMREQBUF_PARMNUM 420
  677. #define SV_NUMBIGBUF_PARMNUM 422
  678. #define SV_NUMFILETASKS_PARMNUM 423
  679. #define SV_ALERTSCHED_PARMNUM 37
  680. #define SV_ERRORALERT_PARMNUM 38
  681. #define SV_LOGONALERT_PARMNUM 39
  682. #define SV_ACCESSALERT_PARMNUM 40
  683. #define SV_DISKALERT_PARMNUM 41
  684. #define SV_NETIOALERT_PARMNUM 42
  685. #define SV_MAXAUDITSZ_PARMNUM 43
  686. #define SV_SRVHEURISTICS_PARMNUM 431
  687. #define SV_SESSOPENS_PARMNUM 501
  688. #define SV_SESSVCS_PARMNUM 502
  689. #define SV_OPENSEARCH_PARMNUM 503
  690. #define SV_SIZREQBUF_PARMNUM 504
  691. #define SV_INITWORKITEMS_PARMNUM 505
  692. #define SV_MAXWORKITEMS_PARMNUM 506
  693. #define SV_RAWWORKITEMS_PARMNUM 507
  694. #define SV_IRPSTACKSIZE_PARMNUM 508
  695. #define SV_MAXRAWBUFLEN_PARMNUM 509
  696. #define SV_SESSUSERS_PARMNUM 510
  697. #define SV_SESSCONNS_PARMNUM 511
  698. #define SV_MAXNONPAGEDMEMORYUSAGE_PARMNUM 512
  699. #define SV_MAXPAGEDMEMORYUSAGE_PARMNUM 513
  700. #define SV_ENABLESOFTCOMPAT_PARMNUM 514
  701. #define SV_ENABLEFORCEDLOGOFF_PARMNUM 515
  702. #define SV_TIMESOURCE_PARMNUM 516
  703. #define SV_ACCEPTDOWNLEVELAPIS_PARMNUM 517
  704. #define SV_LMANNOUNCE_PARMNUM 518
  705. #define SV_DOMAIN_PARMNUM 519
  706. #define SV_MAXCOPYREADLEN_PARMNUM 520
  707. #define SV_MAXCOPYWRITELEN_PARMNUM 521
  708. #define SV_MINKEEPSEARCH_PARMNUM 522
  709. #define SV_MAXKEEPSEARCH_PARMNUM 523
  710. #define SV_MINKEEPCOMPLSEARCH_PARMNUM 524
  711. #define SV_MAXKEEPCOMPLSEARCH_PARMNUM 525
  712. #define SV_THREADCOUNTADD_PARMNUM 526
  713. #define SV_NUMBLOCKTHREADS_PARMNUM 527
  714. #define SV_SCAVTIMEOUT_PARMNUM 528
  715. #define SV_MINRCVQUEUE_PARMNUM 529
  716. #define SV_MINFREEWORKITEMS_PARMNUM 530
  717. #define SV_XACTMEMSIZE_PARMNUM 531
  718. #define SV_THREADPRIORITY_PARMNUM 532
  719. #define SV_MAXMPXCT_PARMNUM 533
  720. #define SV_OPLOCKBREAKWAIT_PARMNUM 534
  721. #define SV_OPLOCKBREAKRESPONSEWAIT_PARMNUM 535
  722. #define SV_ENABLEOPLOCKS_PARMNUM 536
  723. #define SV_ENABLEOPLOCKFORCECLOSE_PARMNUM 537
  724. #define SV_ENABLEFCBOPENS_PARMNUM 538
  725. #define SV_ENABLERAW_PARMNUM 539
  726. #define SV_ENABLESHAREDNETDRIVES_PARMNUM 540
  727. #define SV_MINFREECONNECTIONS_PARMNUM 541
  728. #define SV_MAXFREECONNECTIONS_PARMNUM 542
  729. #define SV_INITSESSTABLE_PARMNUM 543
  730. #define SV_INITCONNTABLE_PARMNUM 544
  731. #define SV_INITFILETABLE_PARMNUM 545
  732. #define SV_INITSEARCHTABLE_PARMNUM 546
  733. #define SV_ALERTSCHEDULE_PARMNUM 547
  734. #define SV_ERRORTHRESHOLD_PARMNUM 548
  735. #define SV_NETWORKERRORTHRESHOLD_PARMNUM 549
  736. #define SV_DISKSPACETHRESHOLD_PARMNUM 550
  737. #define SV_DISKCONFIGURATION_PARMNUM 551
  738. #define SV_MAXLINKDELAY_PARMNUM 552
  739. #define SV_MINLINKTHROUGHPUT_PARMNUM 553
  740. #define SV_LINKINFOVALIDTIME_PARMNUM 554
  741. #define SV_SCAVQOSINFOUPDATETIME_PARMNUM 555
  742. #define SV_MAXWORKITEMIDLETIME_PARMNUM 556
  743. #define SV_MAXRAWWORKITEMS_PARMNUM 557
  744. #define SV_NONBLOCKINGTHREADS_PARMNUM 558
  745. #define SV_BLOCKINGTHREADS_PARMNUM 559
  746. #define SV_PRODUCTTYPE_PARMNUM 560
  747. #define SV_SERVERSIZE_PARMNUM 561
  748. #define SV_CONNECTIONLESSAUTODISC_PARMNUM 562
  749. #define SV_SHARINGVIOLATIONRETRIES_PARMNUM 563
  750. #define SV_SHARINGVIOLATIONDELAY_PARMNUM 564
  751. #define SV_MAXGLOBALOPENSEARCH_PARMNUM 565
  752. #define SV_REMOVEDUPLICATESEARCHES_PARMNUM 566
  753. #define SV_LOCKVIOLATIONRETRIES_PARMNUM 567
  754. #define SV_LOCKVIOLATIONOFFSET_PARMNUM 568
  755. #define SV_LOCKVIOLATIONDELAY_PARMNUM 569
  756. #define SV_MDLREADSWITCHOVER_PARMNUM 570
  757. //
  758. // Single-field infolevels for NetServerSetInfo.
  759. //
  760. #define SV_COMMENT_INFOLEVEL \
  761. (PARMNUM_BASE_INFOLEVEL + SV_COMMENT_PARMNUM)
  762. #define SV_USERS_INFOLEVEL \
  763. (PARMNUM_BASE_INFOLEVEL + SV_USERS_PARMNUM)
  764. #define SV_DISC_INFOLEVEL \
  765. (PARMNUM_BASE_INFOLEVEL + SV_DISC_PARMNUM)
  766. #define SV_HIDDEN_INFOLEVEL \
  767. (PARMNUM_BASE_INFOLEVEL + SV_HIDDEN_PARMNUM)
  768. #define SV_ANNOUNCE_INFOLEVEL \
  769. (PARMNUM_BASE_INFOLEVEL + SV_ANNOUNCE_PARMNUM)
  770. #define SV_ANNDELTA_INFOLEVEL \
  771. (PARMNUM_BASE_INFOLEVEL + SV_ANNDELTA_PARMNUM)
  772. #define SV_SESSOPENS_INFOLEVEL \
  773. (PARMNUM_BASE_INFOLEVEL + SV_SESSOPENS_PARMNUM)
  774. #define SV_SESSVCS_INFOLEVEL \
  775. (PARMNUM_BASE_INFOLEVEL + SV_SESSVCS_PARMNUM)
  776. #define SV_OPENSEARCH_INFOLEVEL \
  777. (PARMNUM_BASE_INFOLEVEL + SV_OPENSEARCH_PARMNUM)
  778. #define SV_MAXWORKITEMS_INFOLEVEL \
  779. (PARMNUM_BASE_INFOLEVEL + SV_MAXWORKITEMS_PARMNUM)
  780. #define SV_MAXRAWBUFLEN_INFOLEVEL \
  781. (PARMNUM_BASE_INFOLEVEL + SV_MAXRAWBUFLEN_PARMNUM)
  782. #define SV_SESSUSERS_INFOLEVEL \
  783. (PARMNUM_BASE_INFOLEVEL + SV_SESSUSERS_PARMNUM)
  784. #define SV_SESSCONNS_INFOLEVEL \
  785. (PARMNUM_BASE_INFOLEVEL + SV_SESSCONNS_PARMNUM)
  786. #define SV_MAXNONPAGEDMEMORYUSAGE_INFOLEVEL \
  787. (PARMNUM_BASE_INFOLEVEL + SV_MAXNONPAGEDMEMORYUSAGE_PARMNUM)
  788. #define SV_MAXPAGEDMEMORYUSAGE_INFOLEVEL \
  789. (PARMNUM_BASE_INFOLEVEL + SV_MAXPAGEDMEMORYUSAGE_PARMNUM)
  790. #define SV_ENABLESOFTCOMPAT_INFOLEVEL \
  791. (PARMNUM_BASE_INFOLEVEL + SV_ENABLESOFTCOMPAT_PARMNUM)
  792. #define SV_ENABLEFORCEDLOGOFF_INFOLEVEL \
  793. (PARMNUM_BASE_INFOLEVEL + SV_ENABLEFORCEDLOGOFF_PARMNUM)
  794. #define SV_TIMESOURCE_INFOLEVEL \
  795. (PARMNUM_BASE_INFOLEVEL + SV_TIMESOURCE_PARMNUM)
  796. #define SV_LMANNOUNCE_INFOLEVEL \
  797. (PARMNUM_BASE_INFOLEVEL + SV_LMANNOUNCE_PARMNUM)
  798. #define SV_MAXCOPYREADLEN_INFOLEVEL \
  799. (PARMNUM_BASE_INFOLEVEL + SV_MAXCOPYREADLEN_PARMNUM)
  800. #define SV_MAXCOPYWRITELEN_INFOLEVEL \
  801. (PARMNUM_BASE_INFOLEVEL + SV_MAXCOPYWRITELEN_PARMNUM)
  802. #define SV_MINKEEPSEARCH_INFOLEVEL \
  803. (PARMNUM_BASE_INFOLEVEL + SV_MINKEEPSEARCH_PARMNUM)
  804. #define SV_MAXKEEPSEARCH_INFOLEVEL \
  805. (PARMNUM_BASE_INFOLEVEL + SV_MAXKEEPSEARCH_PARMNUM)
  806. #define SV_MINKEEPCOMPLSEARCH_INFOLEVEL \
  807. (PARMNUM_BASE_INFOLEVEL + SV_MINKEEPCOMPLSEARCH_PARMNUM)
  808. #define SV_MAXKEEPCOMPLSEARCH_INFOLEVEL \
  809. (PARMNUM_BASE_INFOLEVEL + SV_MAXKEEPCOMPLSEARCH_PARMNUM)
  810. #define SV_SCAVTIMEOUT_INFOLEVEL \
  811. (PARMNUM_BASE_INFOLEVEL + SV_SCAVTIMEOUT_PARMNUM)
  812. #define SV_MINRCVQUEUE_INFOLEVEL \
  813. (PARMNUM_BASE_INFOLEVEL + SV_MINRCVQUEUE_PARMNUM)
  814. #define SV_MINFREEWORKITEMS_INFOLEVEL \
  815. (PARMNUM_BASE_INFOLEVEL + SV_MINFREEWORKITEMS_PARMNUM)
  816. #define SV_MAXMPXCT_INFOLEVEL \
  817. (PARMNUM_BASE_INFOLEVEL + SV_MAXMPXCT_PARMNUM)
  818. #define SV_OPLOCKBREAKWAIT_INFOLEVEL \
  819. (PARMNUM_BASE_INFOLEVEL + SV_OPLOCKBREAKWAIT_PARMNUM)
  820. #define SV_OPLOCKBREAKRESPONSEWAIT_INFOLEVEL \
  821. (PARMNUM_BASE_INFOLEVEL + SV_OPLOCKBREAKRESPONSEWAIT_PARMNUM)
  822. #define SV_ENABLEOPLOCKS_INFOLEVEL \
  823. (PARMNUM_BASE_INFOLEVEL + SV_ENABLEOPLOCKS_PARMNUM)
  824. #define SV_ENABLEOPLOCKFORCECLOSE_INFOLEVEL \
  825. (PARMNUM_BASE_INFOLEVEL + SV_ENABLEOPLOCKFORCECLOSE_PARMNUM)
  826. #define SV_ENABLEFCBOPENS_INFOLEVEL \
  827. (PARMNUM_BASE_INFOLEVEL + SV_ENABLEFCBOPENS_PARMNUM)
  828. #define SV_ENABLERAW_INFOLEVEL \
  829. (PARMNUM_BASE_INFOLEVEL + SV_ENABLERAW_PARMNUM)
  830. #define SV_ENABLESHAREDNETDRIVES_INFOLEVEL \
  831. (PARMNUM_BASE_INFOLEVEL + SV_ENABLESHAREDNETDRIVES_PARMNUM)
  832. #define SV_MINFREECONNECTIONS_INFOLEVEL \
  833. (PARMNUM_BASE_INFOLEVEL + SV_MINFREECONNECTIONS_PARMNUM)
  834. #define SV_MAXFREECONNECTIONS_INFOLEVEL \
  835. (PARMNUM_BASE_INFOLEVEL + SV_MAXFREECONNECTIONS_PARMNUM)
  836. #define SV_INITSESSTABLE_INFOLEVEL \
  837. (PARMNUM_BASE_INFOLEVEL + SV_INITSESSTABLE_PARMNUM)
  838. #define SV_INITCONNTABLE_INFOLEVEL \
  839. (PARMNUM_BASE_INFOLEVEL + SV_INITCONNTABLE_PARMNUM)
  840. #define SV_INITFILETABLE_INFOLEVEL \
  841. (PARMNUM_BASE_INFOLEVEL + SV_INITFILETABLE_PARMNUM)
  842. #define SV_INITSEARCHTABLE_INFOLEVEL \
  843. (PARMNUM_BASE_INFOLEVEL + SV_INITSEARCHTABLE_PARMNUM)
  844. #define SV_ALERTSCHEDULE_INFOLEVEL \
  845. (PARMNUM_BASE_INFOLEVEL + SV_ALERTSCHEDULE_PARMNUM)
  846. #define SV_ERRORTHRESHOLD_INFOLEVEL \
  847. (PARMNUM_BASE_INFOLEVEL + SV_ERRORTHRESHOLD_PARMNUM)
  848. #define SV_NETWORKERRORTHRESHOLD_INFOLEVEL \
  849. (PARMNUM_BASE_INFOLEVEL + SV_NETWORKERRORTHRESHOLD_PARMNUM)
  850. #define SV_DISKSPACETHRESHOLD_INFOLEVEL \
  851. (PARMNUM_BASE_INFOLEVEL + SV_DISKSPACETHRESHOLD_PARMNUM)
  852. #define SV_MAXLINKDELAY_INFOLEVEL \
  853. (PARMNUM_BASE_INFOLEVEL + SV_MAXLINKDELAY_PARMNUM)
  854. #define SV_MINLINKTHROUGHPUT_INFOLEVEL \
  855. (PARMNUM_BASE_INFOLEVEL + SV_MINLINKTHROUGHPUT_PARMNUM)
  856. #define SV_LINKINFOVALIDTIME_INFOLEVEL \
  857. (PARMNUM_BASE_INFOLEVEL + SV_LINKINFOVALIDTIME_PARMNUM)
  858. #define SV_SCAVQOSINFOUPDATETIME_INFOLEVEL \
  859. (PARMNUM_BASE_INFOLEVEL + SV_SCAVQOSINFOUPDATETIME_PARMNUM)
  860. #define SV_MAXWORKITEMIDLETIME_INFOLEVEL \
  861. (PARMNUM_BASE_INFOLEVEL + SV_MAXWORKITEMIDLETIME_PARMNUM)
  862. #define SV_MAXRAWWORKITEMS_INFOLOEVEL \
  863. (PARMNUM_BASE_INFOLEVEL + SV_MAXRAWWORKITEMS_PARMNUM)
  864. #define SV_NONBLOCKINGTHREADS_INFOLOEVEL \
  865. (PARMNUM_BASE_INFOLEVEL + SV_NONBLOCKINGTHREADS_PARMNUM)
  866. #define SV_BLOCKINGTHREADS_INFOLOEVEL \
  867. (PARMNUM_BASE_INFOLEVEL + SV_BLOCKINGTHREADS_PARMNUM)
  868. #define SV_PRODUCTTYPE_INFOLOEVEL \
  869. (PARMNUM_BASE_INFOLEVEL + SV_PRODUCTTYPE_PARMNUM)
  870. #define SV_SERVERSIZE_INFOLOEVEL \
  871. (PARMNUM_BASE_INFOLEVEL + SV_SERVERSIZE_PARMNUM)
  872. #define SV_CONNECTIONLESSAUTODISC_INFOLOEVEL \
  873. (PARMNUM_BASE_INFOLEVEL + SV_CONNECTIONLESSAUTODISC_PARMNUM)
  874. #define SV_SHARINGVIOLATIONRETRIES_INFOLOEVEL \
  875. (PARMNUM_BASE_INFOLEVEL + SV_SHARINGVIOLATIONRETRIES_PARMNUM)
  876. #define SV_SHARINGVIOLATIONDELAY_INFOLOEVEL \
  877. (PARMNUM_BASE_INFOLEVEL + SV_SHARINGVIOLATIONDELAY_PARMNUM)
  878. #define SV_MAXGLOBALOPENSEARCH_INFOLOEVEL \
  879. (PARMNUM_BASE_INFOLEVEL + SV_MAXGLOBALOPENSEARCH_PARMNUM)
  880. #define SV_REMOVEDUPLICATESEARCHES_INFOLOEVEL \
  881. (PARMNUM_BASE_INFOLEVEL + SV_REMOVEDUPLICATESEARCHES_PARMNUM)
  882. #define SV_LOCKVIOLATIONRETRIES_INFOLOEVEL \
  883. (PARMNUM_BASE_INFOLEVEL + SV_LOCKVIOLATIONRETRIES_PARMNUM)
  884. #define SV_LOCKVIOLATIONOFFSET_INFOLOEVEL \
  885. (PARMNUM_BASE_INFOLEVEL + SV_LOCKVIOLATIONOFFSET_PARMNUM)
  886. #define SV_LOCKVIOLATIONDELAY_INFOLOEVEL \
  887. (PARMNUM_BASE_INFOLEVEL + SV_LOCKVIOLATIONDELAY_PARMNUM)
  888. #define SV_MDLREADSWITCHOVER_INFOLOEVEL \
  889. (PARMNUM_BASE_INFOLEVEL + SV_MDLREADSWITCHOVER_PARMNUM)
  890. #define SVI1_NUM_ELEMENTS 5
  891. #define SVI2_NUM_ELEMENTS 40
  892. #define SVI3_NUM_ELEMENTS 44
  893. //
  894. // Maxmimum length for command string to NetServerAdminCommand.
  895. //
  896. #define SV_MAX_CMD_LEN PATHLEN
  897. //
  898. // Masks describing AUTOPROFILE parameters
  899. //
  900. #define SW_AUTOPROF_LOAD_MASK 0x1
  901. #define SW_AUTOPROF_SAVE_MASK 0x2
  902. //
  903. // Max size of svX_srvheuristics.
  904. //
  905. #define SV_MAX_SRV_HEUR_LEN 32 // Max heuristics info string length.
  906. //
  907. // Equate for use with sv102_licenses.
  908. //
  909. #define SV_USERS_PER_LICENSE 5
  910. #ifdef __cplusplus
  911. }
  912. #endif
  913. #endif // _LMSERVER_