home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Internet 2000 May / MICD_2000_05.iso / CBuilder5 / INSTALL / DATA1.CAB / Program_Built_Files / Include / lmserver.h < prev    next >
C/C++ Source or Header  |  2000-02-01  |  52KB  |  1,333 lines

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