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.

1130 lines
42 KiB

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