home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 May / Pcwk5b98.iso / Borland / Cplus45 / BC45 / MSINC.PAK / LMSERVER.H < prev    next >
C/C++ Source or Header  |  1995-08-29  |  44KB  |  1,131 lines

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