/*++ BUILD Version: 0007 // Increment this if a change has global effects Copyright (c) 1990-1993 Microsoft Corporation Module Name: lmserver.h Abstract: This file contains information about NetServer APIs. Function Prototypes Data Structures Definition of special values Author: Dan Lafferty (danl) 24-Jan-1991 Environment: User Mode - Win32 Notes: You must include NETCONS.H before this file, since this file depends on values defined in NETCONS.H. Revision History: 25-Jan-1991 Danl Ported from LM2.0 12-Feb-1991 danl Changed info levels to match current spec - no more info level 3. 14-Apr-1991 w-shanku Changed parmnum constants to be more consistent with OS/2 parmnums. 19-Apr-1991 JohnRo Added OPTIONAL keywords to APIs. Added SV_MAX_SRV_HEUR_LEN from LM 2.x 09-May-1991 JohnRo Implement UNICODE. 22-May-1991 JohnRo Added three new SV_TYPE equates from LM 2.x source. 23-May-1991 JohnRo Added sv403_autopath. 26-May-1991 JohnRo Corrected value of SV_ERRORALERT_PARMNUM. 18-Jun-1991 JohnRo Changed sv102_disc to be signed, and changed SV_NODISC to be 32-bits. Added sv102_licenses. 03-May-1993 JohnRo Added correct name of SV_TYPE_SERVER_UNIX as alias for SV_TYPE_XENIX_SERVER (the name as someone accidentally defined for NT). --*/ #ifndef _LMSERVER_ #define _LMSERVER_ #ifdef __cplusplus extern "C" { #endif #include // SERVICE_STATUS_HANDLE // // Function Prototypes - SERVER // NET_API_STATUS NET_API_FUNCTION NetServerEnum ( IN LPTSTR servername OPTIONAL, IN DWORD level, OUT LPBYTE *bufptr, IN DWORD prefmaxlen, OUT LPDWORD entriesread, OUT LPDWORD totalentries, IN DWORD servertype, IN LPTSTR domain OPTIONAL, IN OUT LPDWORD resume_handle OPTIONAL ); NET_API_STATUS NET_API_FUNCTION NetServerGetInfo ( IN LPTSTR servername OPTIONAL, IN DWORD level, OUT LPBYTE *bufptr ); NET_API_STATUS NET_API_FUNCTION NetServerSetInfo ( IN LPTSTR servername OPTIONAL, IN DWORD level, IN LPBYTE buf, OUT LPDWORD ParmError OPTIONAL ); // // Temporary hack function. // NET_API_STATUS NetServerSetInfoCommandLine ( IN WORD argc, IN LPTSTR argv[] ); NET_API_STATUS NET_API_FUNCTION NetServerDiskEnum ( IN LPTSTR servername OPTIONAL, IN DWORD level, OUT LPBYTE *bufptr, IN DWORD prefmaxlen, OUT LPDWORD entriesread, OUT LPDWORD totalentries, IN OUT LPDWORD resume_handle OPTIONAL ); NET_API_STATUS NET_API_FUNCTION NetServerTransportAdd ( IN LPTSTR servername, IN DWORD level, IN LPBYTE bufptr ); NET_API_STATUS NET_API_FUNCTION NetServerTransportDel ( IN LPTSTR servername, IN DWORD level, IN LPBYTE bufptr ); NET_API_STATUS NET_API_FUNCTION NetServerTransportEnum ( IN LPTSTR servername, IN DWORD level, OUT LPBYTE *bufptr, IN DWORD prefmaxlen, OUT LPDWORD entriesread, OUT LPDWORD totalentries, IN OUT LPDWORD resumehandle ); // // The following function can be called by Win NT services to register // their service type. This function is exported from advapi32.dll. // Therefore, if this is the only function called by that service, then // it is not necessary to link to netapi32.lib. // BOOL SetServiceBits( IN SERVICE_STATUS_HANDLE hServiceStatus, IN DWORD dwServiceBits, IN BOOL bSetBitsOn, IN BOOL bUpdateImmediately ); // // Data Structures - SERVER // typedef struct _SERVER_INFO_100 { DWORD sv100_platform_id; LPTSTR sv100_name; } SERVER_INFO_100, *PSERVER_INFO_100, *LPSERVER_INFO_100; typedef struct _SERVER_INFO_101 { DWORD sv101_platform_id; LPTSTR sv101_name; DWORD sv101_version_major; DWORD sv101_version_minor; DWORD sv101_type; LPTSTR sv101_comment; } SERVER_INFO_101, *PSERVER_INFO_101, *LPSERVER_INFO_101; typedef struct _SERVER_INFO_102 { DWORD sv102_platform_id; LPTSTR sv102_name; DWORD sv102_version_major; DWORD sv102_version_minor; DWORD sv102_type; LPTSTR sv102_comment; DWORD sv102_users; LONG sv102_disc; BOOL sv102_hidden; DWORD sv102_announce; DWORD sv102_anndelta; DWORD sv102_licenses; LPTSTR sv102_userpath; } SERVER_INFO_102, *PSERVER_INFO_102, *LPSERVER_INFO_102; typedef struct _SERVER_INFO_402 { DWORD sv402_ulist_mtime; DWORD sv402_glist_mtime; DWORD sv402_alist_mtime; LPTSTR sv402_alerts; DWORD sv402_security; DWORD sv402_numadmin; DWORD sv402_lanmask; LPTSTR sv402_guestacct; DWORD sv402_chdevs; DWORD sv402_chdevq; DWORD sv402_chdevjobs; DWORD sv402_connections; DWORD sv402_shares; DWORD sv402_openfiles; DWORD sv402_sessopens; DWORD sv402_sessvcs; DWORD sv402_sessreqs; DWORD sv402_opensearch; DWORD sv402_activelocks; DWORD sv402_numreqbuf; DWORD sv402_sizreqbuf; DWORD sv402_numbigbuf; DWORD sv402_numfiletasks; DWORD sv402_alertsched; DWORD sv402_erroralert; DWORD sv402_logonalert; DWORD sv402_accessalert; DWORD sv402_diskalert; DWORD sv402_netioalert; DWORD sv402_maxauditsz; LPTSTR sv402_srvheuristics; } SERVER_INFO_402, *PSERVER_INFO_402, *LPSERVER_INFO_402; typedef struct _SERVER_INFO_403 { DWORD sv403_ulist_mtime; DWORD sv403_glist_mtime; DWORD sv403_alist_mtime; LPTSTR sv403_alerts; DWORD sv403_security; DWORD sv403_numadmin; DWORD sv403_lanmask; LPTSTR sv403_guestacct; DWORD sv403_chdevs; DWORD sv403_chdevq; DWORD sv403_chdevjobs; DWORD sv403_connections; DWORD sv403_shares; DWORD sv403_openfiles; DWORD sv403_sessopens; DWORD sv403_sessvcs; DWORD sv403_sessreqs; DWORD sv403_opensearch; DWORD sv403_activelocks; DWORD sv403_numreqbuf; DWORD sv403_sizreqbuf; DWORD sv403_numbigbuf; DWORD sv403_numfiletasks; DWORD sv403_alertsched; DWORD sv403_erroralert; DWORD sv403_logonalert; DWORD sv403_accessalert; DWORD sv403_diskalert; DWORD sv403_netioalert; DWORD sv403_maxauditsz; LPTSTR sv403_srvheuristics; DWORD sv403_auditedevents; DWORD sv403_autoprofile; LPTSTR sv403_autopath; } SERVER_INFO_403, *PSERVER_INFO_403, *LPSERVER_INFO_403; typedef struct _SERVER_INFO_502 { DWORD sv502_sessopens; DWORD sv502_sessvcs; DWORD sv502_opensearch; DWORD sv502_sizreqbuf; DWORD sv502_initworkitems; DWORD sv502_maxworkitems; DWORD sv502_rawworkitems; DWORD sv502_irpstacksize; DWORD sv502_maxrawbuflen; DWORD sv502_sessusers; DWORD sv502_sessconns; DWORD sv502_maxpagedmemoryusage; DWORD sv502_maxnonpagedmemoryusage; BOOL sv502_enablesoftcompat; BOOL sv502_enableforcedlogoff; BOOL sv502_timesource; BOOL sv502_acceptdownlevelapis; BOOL sv502_lmannounce; } SERVER_INFO_502, *PSERVER_INFO_502, *LPSERVER_INFO_502; typedef struct _SERVER_INFO_503 { DWORD sv503_sessopens; DWORD sv503_sessvcs; DWORD sv503_opensearch; DWORD sv503_sizreqbuf; DWORD sv503_initworkitems; DWORD sv503_maxworkitems; DWORD sv503_rawworkitems; DWORD sv503_irpstacksize; DWORD sv503_maxrawbuflen; DWORD sv503_sessusers; DWORD sv503_sessconns; DWORD sv503_maxpagedmemoryusage; DWORD sv503_maxnonpagedmemoryusage; BOOL sv503_enablesoftcompat; BOOL sv503_enableforcedlogoff; BOOL sv503_timesource; BOOL sv503_acceptdownlevelapis; BOOL sv503_lmannounce; LPTSTR sv503_domain; DWORD sv503_maxcopyreadlen; DWORD sv503_maxcopywritelen; DWORD sv503_minkeepsearch; DWORD sv503_maxkeepsearch; DWORD sv503_minkeepcomplsearch; DWORD sv503_maxkeepcomplsearch; DWORD sv503_threadcountadd; DWORD sv503_numblockthreads; DWORD sv503_scavtimeout; DWORD sv503_minrcvqueue; DWORD sv503_minfreeworkitems; DWORD sv503_xactmemsize; DWORD sv503_threadpriority; DWORD sv503_maxmpxct; DWORD sv503_oplockbreakwait; DWORD sv503_oplockbreakresponsewait; BOOL sv503_enableoplocks; BOOL sv503_enableoplockforceclose; BOOL sv503_enablefcbopens; BOOL sv503_enableraw; BOOL sv503_enablesharednetdrives; DWORD sv503_minfreeconnections; DWORD sv503_maxfreeconnections; } SERVER_INFO_503, *PSERVER_INFO_503, *LPSERVER_INFO_503; typedef struct _SERVER_INFO_599 { DWORD sv599_sessopens; DWORD sv599_sessvcs; DWORD sv599_opensearch; DWORD sv599_sizreqbuf; DWORD sv599_initworkitems; DWORD sv599_maxworkitems; DWORD sv599_rawworkitems; DWORD sv599_irpstacksize; DWORD sv599_maxrawbuflen; DWORD sv599_sessusers; DWORD sv599_sessconns; DWORD sv599_maxpagedmemoryusage; DWORD sv599_maxnonpagedmemoryusage; BOOL sv599_enablesoftcompat; BOOL sv599_enableforcedlogoff; BOOL sv599_timesource; BOOL sv599_acceptdownlevelapis; BOOL sv599_lmannounce; LPTSTR sv599_domain; DWORD sv599_maxcopyreadlen; DWORD sv599_maxcopywritelen; DWORD sv599_minkeepsearch; DWORD sv599_maxkeepsearch; DWORD sv599_minkeepcomplsearch; DWORD sv599_maxkeepcomplsearch; DWORD sv599_threadcountadd; DWORD sv599_numblockthreads; DWORD sv599_scavtimeout; DWORD sv599_minrcvqueue; DWORD sv599_minfreeworkitems; DWORD sv599_xactmemsize; DWORD sv599_threadpriority; DWORD sv599_maxmpxct; DWORD sv599_oplockbreakwait; DWORD sv599_oplockbreakresponsewait; BOOL sv599_enableoplocks; BOOL sv599_enableoplockforceclose; BOOL sv599_enablefcbopens; BOOL sv599_enableraw; BOOL sv599_enablesharednetdrives; DWORD sv599_minfreeconnections; DWORD sv599_maxfreeconnections; DWORD sv599_initsesstable; DWORD sv599_initconntable; DWORD sv599_initfiletable; DWORD sv599_initsearchtable; DWORD sv599_alertschedule; DWORD sv599_errorthreshold; DWORD sv599_networkerrorthreshold; DWORD sv599_diskspacethreshold; DWORD sv599_diskconfiguration; DWORD sv599_maxlinkdelay; DWORD sv599_minlinkthroughput; DWORD sv599_linkinfovalidtime; DWORD sv599_scavqosinfoupdatetime; DWORD sv599_maxworkitemidletime; } SERVER_INFO_599, *PSERVER_INFO_599, *LPSERVER_INFO_599; typedef struct _SERVER_INFO_598 { DWORD sv598_maxrawworkitems; DWORD sv598_nonblockingthreads; DWORD sv598_blockingthreads; DWORD sv598_producttype; DWORD sv598_serversize; DWORD sv598_connectionlessautodisc; DWORD sv598_sharingviolationretries; DWORD sv598_sharingviolationdelay; DWORD sv598_maxglobalopensearch; DWORD sv598_removeduplicatesearches; DWORD sv598_lockviolationoffset; DWORD sv598_lockviolationdelay; DWORD sv598_mdlreadswitchover; DWORD sv598_reserved4; DWORD sv598_reserved5; DWORD sv598_reserved6; DWORD sv598_reserved7; DWORD sv598_reserved8; DWORD sv598_reserved9; DWORD sv598_reserved10; } SERVER_INFO_598, *PSERVER_INFO_598, *LPSERVER_INFO_598; typedef struct _SERVER_INFO_1005 { LPTSTR sv1005_comment; } SERVER_INFO_1005, *PSERVER_INFO_1005, *LPSERVER_INFO_1005; typedef struct _SERVER_INFO_1107 { DWORD sv1107_users; } SERVER_INFO_1107, *PSERVER_INFO_1107, *LPSERVER_INFO_1107; typedef struct _SERVER_INFO_1010 { LONG sv1010_disc; } SERVER_INFO_1010, *PSERVER_INFO_1010, *LPSERVER_INFO_1010; typedef struct _SERVER_INFO_1016 { BOOL sv1016_hidden; } SERVER_INFO_1016, *PSERVER_INFO_1016, *LPSERVER_INFO_1016; typedef struct _SERVER_INFO_1017 { DWORD sv1017_announce; } SERVER_INFO_1017, *PSERVER_INFO_1017, *LPSERVER_INFO_1017; typedef struct _SERVER_INFO_1018 { DWORD sv1018_anndelta; } SERVER_INFO_1018, *PSERVER_INFO_1018, *LPSERVER_INFO_1018; typedef struct _SERVER_INFO_1501 { DWORD sv1501_sessopens; } SERVER_INFO_1501, *PSERVER_INFO_1501, *LPSERVER_INFO_1501; typedef struct _SERVER_INFO_1502 { DWORD sv1502_sessvcs; } SERVER_INFO_1502, *PSERVER_INFO_1502, *LPSERVER_INFO_1502; typedef struct _SERVER_INFO_1503 { DWORD sv1503_opensearch; } SERVER_INFO_1503, *PSERVER_INFO_1503, *LPSERVER_INFO_1503; typedef struct _SERVER_INFO_1506 { DWORD sv1506_maxworkitems; } SERVER_INFO_1506, *PSERVER_INFO_1506, *LPSERVER_INFO_1506; typedef struct _SERVER_INFO_1509 { DWORD sv1509_maxrawbuflen; } SERVER_INFO_1509, *PSERVER_INFO_1509, *LPSERVER_INFO_1509; typedef struct _SERVER_INFO_1510 { DWORD sv1510_sessusers; } SERVER_INFO_1510, *PSERVER_INFO_1510, *LPSERVER_INFO_1510; typedef struct _SERVER_INFO_1511 { DWORD sv1511_sessconns; } SERVER_INFO_1511, *PSERVER_INFO_1511, *LPSERVER_INFO_1511; typedef struct _SERVER_INFO_1512 { DWORD sv1512_maxnonpagedmemoryusage; } SERVER_INFO_1512, *PSERVER_INFO_1512, *LPSERVER_INFO_1512; typedef struct _SERVER_INFO_1513 { DWORD sv1513_maxpagedmemoryusage; } SERVER_INFO_1513, *PSERVER_INFO_1513, *LPSERVER_INFO_1513; typedef struct _SERVER_INFO_1514 { BOOL sv1514_enablesoftcompat; } SERVER_INFO_1514, *PSERVER_INFO_1514, *LPSERVER_INFO_1514; typedef struct _SERVER_INFO_1515 { BOOL sv1515_enableforcedlogoff; } SERVER_INFO_1515, *PSERVER_INFO_1515, *LPSERVER_INFO_1515; typedef struct _SERVER_INFO_1516 { BOOL sv1516_timesource; } SERVER_INFO_1516, *PSERVER_INFO_1516, *LPSERVER_INFO_1516; typedef struct _SERVER_INFO_1518 { BOOL sv1518_lmannounce; } SERVER_INFO_1518, *PSERVER_INFO_1518, *LPSERVER_INFO_1518; typedef struct _SERVER_INFO_1520 { DWORD sv1520_maxcopyreadlen; } SERVER_INFO_1520, *PSERVER_INFO_1520, *LPSERVER_INFO_1520; typedef struct _SERVER_INFO_1521 { DWORD sv1521_maxcopywritelen; } SERVER_INFO_1521, *PSERVER_INFO_1521, *LPSERVER_INFO_1521; typedef struct _SERVER_INFO_1522 { DWORD sv1522_minkeepsearch; } SERVER_INFO_1522, *PSERVER_INFO_1522, *LPSERVER_INFO_1522; typedef struct _SERVER_INFO_1523 { DWORD sv1523_maxkeepsearch; } SERVER_INFO_1523, *PSERVER_INFO_1523, *LPSERVER_INFO_1523; typedef struct _SERVER_INFO_1524 { DWORD sv1524_minkeepcomplsearch; } SERVER_INFO_1524, *PSERVER_INFO_1524, *LPSERVER_INFO_1524; typedef struct _SERVER_INFO_1525 { DWORD sv1525_maxkeepcomplsearch; } SERVER_INFO_1525, *PSERVER_INFO_1525, *LPSERVER_INFO_1525; typedef struct _SERVER_INFO_1528 { DWORD sv1528_scavtimeout; } SERVER_INFO_1528, *PSERVER_INFO_1528, *LPSERVER_INFO_1528; typedef struct _SERVER_INFO_1529 { DWORD sv1529_minrcvqueue; } SERVER_INFO_1529, *PSERVER_INFO_1529, *LPSERVER_INFO_1529; typedef struct _SERVER_INFO_1530 { DWORD sv1530_minfreeworkitems; } SERVER_INFO_1530, *PSERVER_INFO_1530, *LPSERVER_INFO_1530; typedef struct _SERVER_INFO_1533 { DWORD sv1533_maxmpxct; } SERVER_INFO_1533, *PSERVER_INFO_1533, *LPSERVER_INFO_1533; typedef struct _SERVER_INFO_1534 { DWORD sv1534_oplockbreakwait; } SERVER_INFO_1534, *PSERVER_INFO_1534, *LPSERVER_INFO_1534; typedef struct _SERVER_INFO_1535 { DWORD sv1535_oplockbreakresponsewait; } SERVER_INFO_1535, *PSERVER_INFO_1535, *LPSERVER_INFO_1535; typedef struct _SERVER_INFO_1536 { BOOL sv1536_enableoplocks; } SERVER_INFO_1536, *PSERVER_INFO_1536, *LPSERVER_INFO_1536; typedef struct _SERVER_INFO_1537 { BOOL sv1537_enableoplockforceclose; } SERVER_INFO_1537, *PSERVER_INFO_1537, *LPSERVER_INFO_1537; typedef struct _SERVER_INFO_1538 { BOOL sv1538_enablefcbopens; } SERVER_INFO_1538, *PSERVER_INFO_1538, *LPSERVER_INFO_1538; typedef struct _SERVER_INFO_1539 { BOOL sv1539_enableraw; } SERVER_INFO_1539, *PSERVER_INFO_1539, *LPSERVER_INFO_1539; typedef struct _SERVER_INFO_1540 { BOOL sv1540_enablesharednetdrives; } SERVER_INFO_1540, *PSERVER_INFO_1540, *LPSERVER_INFO_1540; typedef struct _SERVER_INFO_1541 { BOOL sv1541_minfreeconnections; } SERVER_INFO_1541, *PSERVER_INFO_1541, *LPSERVER_INFO_1541; typedef struct _SERVER_INFO_1542 { BOOL sv1542_maxfreeconnections; } SERVER_INFO_1542, *PSERVER_INFO_1542, *LPSERVER_INFO_1542; typedef struct _SERVER_INFO_1543 { DWORD sv1543_initsesstable; } SERVER_INFO_1543, *PSERVER_INFO_1543, *LPSERVER_INFO_1543; typedef struct _SERVER_INFO_1544 { DWORD sv1544_initconntable; } SERVER_INFO_1544, *PSERVER_INFO_1544, *LPSERVER_INFO_1544; typedef struct _SERVER_INFO_1545 { DWORD sv1545_initfiletable; } SERVER_INFO_1545, *PSERVER_INFO_1545, *LPSERVER_INFO_1545; typedef struct _SERVER_INFO_1546 { DWORD sv1546_initsearchtable; } SERVER_INFO_1546, *PSERVER_INFO_1546, *LPSERVER_INFO_1546; typedef struct _SERVER_INFO_1547 { DWORD sv1547_alertschedule; } SERVER_INFO_1547, *PSERVER_INFO_1547, *LPSERVER_INFO_1547; typedef struct _SERVER_INFO_1548 { DWORD sv1548_errorthreshold; } SERVER_INFO_1548, *PSERVER_INFO_1548, *LPSERVER_INFO_1548; typedef struct _SERVER_INFO_1549 { DWORD sv1549_networkerrorthreshold; } SERVER_INFO_1549, *PSERVER_INFO_1549, *LPSERVER_INFO_1549; typedef struct _SERVER_INFO_1550 { DWORD sv1550_diskspacethreshold; } SERVER_INFO_1550, *PSERVER_INFO_1550, *LPSERVER_INFO_1550; typedef struct _SERVER_INFO_1552 { DWORD sv1552_maxlinkdelay; } SERVER_INFO_1552, *PSERVER_INFO_1552, *LPSERVER_INFO_1552; typedef struct _SERVER_INFO_1553 { DWORD sv1553_minlinkthroughput; } SERVER_INFO_1553, *PSERVER_INFO_1553, *LPSERVER_INFO_1553; typedef struct _SERVER_INFO_1554 { DWORD sv1554_linkinfovalidtime; } SERVER_INFO_1554, *PSERVER_INFO_1554, *LPSERVER_INFO_1554; typedef struct _SERVER_INFO_1555 { DWORD sv1555_scavqosinfoupdatetime; } SERVER_INFO_1555, *PSERVER_INFO_1555, *LPSERVER_INFO_1555; typedef struct _SERVER_INFO_1556 { DWORD sv1556_maxworkitemidletime; } SERVER_INFO_1556, *PSERVER_INFO_1556, *LPSERVER_INFO_1556; typedef struct _SERVER_INFO_1557 { DWORD sv1557_maxrawworkitems; } SERVER_INFO_1557, *PSERVER_INFO_1557, *LPSERVER_INFO_1557; typedef struct _SERVER_INFO_1558 { DWORD sv1558_nonblockingthreads; } SERVER_INFO_1558, *PSERVER_INFO_1558, *LPSERVER_INFO_1558; typedef struct _SERVER_INFO_1559 { DWORD sv1559_blockingthreads; } SERVER_INFO_1559, *PSERVER_INFO_1559, *LPSERVER_INFO_1559; typedef struct _SERVER_INFO_1560 { DWORD sv1560_producttype; } SERVER_INFO_1560, *PSERVER_INFO_1560, *LPSERVER_INFO_1560; typedef struct _SERVER_INFO_1561 { DWORD sv1561_serversize; } SERVER_INFO_1561, *PSERVER_INFO_1561, *LPSERVER_INFO_1561; typedef struct _SERVER_INFO_1562 { DWORD sv1562_connectionlessautodisc; } SERVER_INFO_1562, *PSERVER_INFO_1562, *LPSERVER_INFO_1562; typedef struct _SERVER_INFO_1563 { DWORD sv1563_sharingviolationretries; } SERVER_INFO_1563, *PSERVER_INFO_1563, *LPSERVER_INFO_1563; typedef struct _SERVER_INFO_1564 { DWORD sv1564_sharingviolationdelay; } SERVER_INFO_1564, *PSERVER_INFO_1564, *LPSERVER_INFO_1564; typedef struct _SERVER_INFO_1565 { DWORD sv1565_maxglobalopensearch; } SERVER_INFO_1565, *PSERVER_INFO_1565, *LPSERVER_INFO_1565; typedef struct _SERVER_INFO_1566 { BOOL sv1566_removeduplicatesearches; } SERVER_INFO_1566, *PSERVER_INFO_1566, *LPSERVER_INFO_1566; typedef struct _SERVER_INFO_1567 { DWORD sv1567_lockviolationretries; } SERVER_INFO_1567, *PSERVER_INFO_1567, *LPSERVER_INFO_1567; typedef struct _SERVER_INFO_1568 { DWORD sv1568_lockviolationoffset; } SERVER_INFO_1568, *PSERVER_INFO_1568, *LPSERVER_INFO_1568; typedef struct _SERVER_INFO_1569 { DWORD sv1569_lockviolationdelay; } SERVER_INFO_1569, *PSERVER_INFO_1569, *LPSERVER_INFO_1569; typedef struct _SERVER_INFO_1570 { DWORD sv1570_mdlreadswitchover; } SERVER_INFO_1570, *PSERVER_INFO_1570, *LPSERVER_INFO_1570; // // A special structure definition is required in order for this // structure to work with RPC. The problem is that having addresslength // indicate the number of bytes in address means that RPC must know the // link between the two. // #ifdef MIDL_PASS typedef struct _SERVER_TRANSPORT_INFO_0 { DWORD svti0_numberofvcs; LPTSTR svti0_transportname; [size_is(svti0_transportaddresslength)] LPBYTE svti0_transportaddress; DWORD svti0_transportaddresslength; LPTSTR svti0_networkaddress; } SERVER_TRANSPORT_INFO_0, *PSERVER_TRANSPORT_INFO_0, *LPSERVER_TRANSPORT_INFO_0; #else typedef struct _SERVER_TRANSPORT_INFO_0 { DWORD svti0_numberofvcs; LPTSTR svti0_transportname; LPBYTE svti0_transportaddress; DWORD svti0_transportaddresslength; LPTSTR svti0_networkaddress; } SERVER_TRANSPORT_INFO_0, *PSERVER_TRANSPORT_INFO_0, *LPSERVER_TRANSPORT_INFO_0; #endif // // Defines - SERVER // // // The platform ID indicates the levels to use for platform-specific // information. // #define SV_PLATFORM_ID_OS2 400 #define SV_PLATFORM_ID_NT 500 // // Mask to be applied to svX_version_major in order to obtain // the major version number. // #define MAJOR_VERSION_MASK 0x0F // // Bit-mapped values for svX_type fields. X = 1, 2 or 3. // #define SV_TYPE_WORKSTATION 0x00000001 #define SV_TYPE_SERVER 0x00000002 #define SV_TYPE_SQLSERVER 0x00000004 #define SV_TYPE_DOMAIN_CTRL 0x00000008 #define SV_TYPE_DOMAIN_BAKCTRL 0x00000010 #define SV_TYPE_TIME_SOURCE 0x00000020 #define SV_TYPE_AFP 0x00000040 #define SV_TYPE_NOVELL 0x00000080 #define SV_TYPE_DOMAIN_MEMBER 0x00000100 #define SV_TYPE_PRINTQ_SERVER 0x00000200 #define SV_TYPE_DIALIN_SERVER 0x00000400 #define SV_TYPE_XENIX_SERVER 0x00000800 #define SV_TYPE_SERVER_UNIX SV_TYPE_XENIX_SERVER #define SV_TYPE_NT 0x00001000 #define SV_TYPE_WFW 0x00002000 #define SV_TYPE_POTENTIAL_BROWSER 0x00010000 #define SV_TYPE_BACKUP_BROWSER 0x00020000 #define SV_TYPE_MASTER_BROWSER 0x00040000 #define SV_TYPE_DOMAIN_MASTER 0x00080000 #define SV_TYPE_SERVER_OSF 0x00100000 #define SV_TYPE_SERVER_VMS 0x00200000 #define SV_TYPE_ALTERNATE_XPORT 0x20000000 /* return list for alternate transport */ #define SV_TYPE_LOCAL_LIST_ONLY 0x40000000 /* Return local list only */ #define SV_TYPE_DOMAIN_ENUM 0x80000000 #define SV_TYPE_ALL 0xFFFFFFFF /* handy for NetServerEnum2 */ // // Special value for sv102_disc that specifies infinite disconnect // time. // #define SV_NODISC (-1L) /* No autodisconnect timeout enforced */ // // Values of svX_security field. X = 2 or 3. // #define SV_USERSECURITY 1 #define SV_SHARESECURITY 0 // // Values of svX_hidden field. X = 2 or 3. // #define SV_HIDDEN 1 #define SV_VISIBLE 0 // // Values for ParmError parameter to NetServerSetInfo. // #define SV_PLATFORM_ID_PARMNUM 101 #define SV_NAME_PARMNUM 102 #define SV_VERSION_MAJOR_PARMNUM 103 #define SV_VERSION_MINOR_PARMNUM 104 #define SV_TYPE_PARMNUM 105 #define SV_COMMENT_PARMNUM 5 #define SV_USERS_PARMNUM 107 #define SV_DISC_PARMNUM 10 #define SV_HIDDEN_PARMNUM 16 #define SV_ANNOUNCE_PARMNUM 17 #define SV_ANNDELTA_PARMNUM 18 #define SV_USERPATH_PARMNUM 112 #define SV_ULIST_MTIME_PARMNUM 401 #define SV_GLIST_MTIME_PARMNUM 402 #define SV_ALIST_MTIME_PARMNUM 403 #define SV_ALERTS_PARMNUM 11 #define SV_SECURITY_PARMNUM 405 #define SV_NUMADMIN_PARMNUM 406 #define SV_LANMASK_PARMNUM 407 #define SV_GUESTACC_PARMNUM 408 #define SV_CHDEVQ_PARMNUM 410 #define SV_CHDEVJOBS_PARMNUM 411 #define SV_CONNECTIONS_PARMNUM 412 #define SV_SHARES_PARMNUM 413 #define SV_OPENFILES_PARMNUM 414 #define SV_SESSREQS_PARMNUM 417 #define SV_ACTIVELOCKS_PARMNUM 419 #define SV_NUMREQBUF_PARMNUM 420 #define SV_NUMBIGBUF_PARMNUM 422 #define SV_NUMFILETASKS_PARMNUM 423 #define SV_ALERTSCHED_PARMNUM 37 #define SV_ERRORALERT_PARMNUM 38 #define SV_LOGONALERT_PARMNUM 39 #define SV_ACCESSALERT_PARMNUM 40 #define SV_DISKALERT_PARMNUM 41 #define SV_NETIOALERT_PARMNUM 42 #define SV_MAXAUDITSZ_PARMNUM 43 #define SV_SRVHEURISTICS_PARMNUM 431 #define SV_SESSOPENS_PARMNUM 501 #define SV_SESSVCS_PARMNUM 502 #define SV_OPENSEARCH_PARMNUM 503 #define SV_SIZREQBUF_PARMNUM 504 #define SV_INITWORKITEMS_PARMNUM 505 #define SV_MAXWORKITEMS_PARMNUM 506 #define SV_RAWWORKITEMS_PARMNUM 507 #define SV_IRPSTACKSIZE_PARMNUM 508 #define SV_MAXRAWBUFLEN_PARMNUM 509 #define SV_SESSUSERS_PARMNUM 510 #define SV_SESSCONNS_PARMNUM 511 #define SV_MAXNONPAGEDMEMORYUSAGE_PARMNUM 512 #define SV_MAXPAGEDMEMORYUSAGE_PARMNUM 513 #define SV_ENABLESOFTCOMPAT_PARMNUM 514 #define SV_ENABLEFORCEDLOGOFF_PARMNUM 515 #define SV_TIMESOURCE_PARMNUM 516 #define SV_ACCEPTDOWNLEVELAPIS_PARMNUM 517 #define SV_LMANNOUNCE_PARMNUM 518 #define SV_DOMAIN_PARMNUM 519 #define SV_MAXCOPYREADLEN_PARMNUM 520 #define SV_MAXCOPYWRITELEN_PARMNUM 521 #define SV_MINKEEPSEARCH_PARMNUM 522 #define SV_MAXKEEPSEARCH_PARMNUM 523 #define SV_MINKEEPCOMPLSEARCH_PARMNUM 524 #define SV_MAXKEEPCOMPLSEARCH_PARMNUM 525 #define SV_THREADCOUNTADD_PARMNUM 526 #define SV_NUMBLOCKTHREADS_PARMNUM 527 #define SV_SCAVTIMEOUT_PARMNUM 528 #define SV_MINRCVQUEUE_PARMNUM 529 #define SV_MINFREEWORKITEMS_PARMNUM 530 #define SV_XACTMEMSIZE_PARMNUM 531 #define SV_THREADPRIORITY_PARMNUM 532 #define SV_MAXMPXCT_PARMNUM 533 #define SV_OPLOCKBREAKWAIT_PARMNUM 534 #define SV_OPLOCKBREAKRESPONSEWAIT_PARMNUM 535 #define SV_ENABLEOPLOCKS_PARMNUM 536 #define SV_ENABLEOPLOCKFORCECLOSE_PARMNUM 537 #define SV_ENABLEFCBOPENS_PARMNUM 538 #define SV_ENABLERAW_PARMNUM 539 #define SV_ENABLESHAREDNETDRIVES_PARMNUM 540 #define SV_MINFREECONNECTIONS_PARMNUM 541 #define SV_MAXFREECONNECTIONS_PARMNUM 542 #define SV_INITSESSTABLE_PARMNUM 543 #define SV_INITCONNTABLE_PARMNUM 544 #define SV_INITFILETABLE_PARMNUM 545 #define SV_INITSEARCHTABLE_PARMNUM 546 #define SV_ALERTSCHEDULE_PARMNUM 547 #define SV_ERRORTHRESHOLD_PARMNUM 548 #define SV_NETWORKERRORTHRESHOLD_PARMNUM 549 #define SV_DISKSPACETHRESHOLD_PARMNUM 550 #define SV_DISKCONFIGURATION_PARMNUM 551 #define SV_MAXLINKDELAY_PARMNUM 552 #define SV_MINLINKTHROUGHPUT_PARMNUM 553 #define SV_LINKINFOVALIDTIME_PARMNUM 554 #define SV_SCAVQOSINFOUPDATETIME_PARMNUM 555 #define SV_MAXWORKITEMIDLETIME_PARMNUM 556 #define SV_MAXRAWWORKITEMS_PARMNUM 557 #define SV_NONBLOCKINGTHREADS_PARMNUM 558 #define SV_BLOCKINGTHREADS_PARMNUM 559 #define SV_PRODUCTTYPE_PARMNUM 560 #define SV_SERVERSIZE_PARMNUM 561 #define SV_CONNECTIONLESSAUTODISC_PARMNUM 562 #define SV_SHARINGVIOLATIONRETRIES_PARMNUM 563 #define SV_SHARINGVIOLATIONDELAY_PARMNUM 564 #define SV_MAXGLOBALOPENSEARCH_PARMNUM 565 #define SV_REMOVEDUPLICATESEARCHES_PARMNUM 566 #define SV_LOCKVIOLATIONRETRIES_PARMNUM 567 #define SV_LOCKVIOLATIONOFFSET_PARMNUM 568 #define SV_LOCKVIOLATIONDELAY_PARMNUM 569 #define SV_MDLREADSWITCHOVER_PARMNUM 570 // // Single-field infolevels for NetServerSetInfo. // #define SV_COMMENT_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_COMMENT_PARMNUM) #define SV_USERS_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_USERS_PARMNUM) #define SV_DISC_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_DISC_PARMNUM) #define SV_HIDDEN_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_HIDDEN_PARMNUM) #define SV_ANNOUNCE_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_ANNOUNCE_PARMNUM) #define SV_ANNDELTA_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_ANNDELTA_PARMNUM) #define SV_SESSOPENS_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_SESSOPENS_PARMNUM) #define SV_SESSVCS_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_SESSVCS_PARMNUM) #define SV_OPENSEARCH_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_OPENSEARCH_PARMNUM) #define SV_MAXWORKITEMS_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_MAXWORKITEMS_PARMNUM) #define SV_MAXRAWBUFLEN_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_MAXRAWBUFLEN_PARMNUM) #define SV_SESSUSERS_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_SESSUSERS_PARMNUM) #define SV_SESSCONNS_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_SESSCONNS_PARMNUM) #define SV_MAXNONPAGEDMEMORYUSAGE_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_MAXNONPAGEDMEMORYUSAGE_PARMNUM) #define SV_MAXPAGEDMEMORYUSAGE_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_MAXPAGEDMEMORYUSAGE_PARMNUM) #define SV_ENABLESOFTCOMPAT_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_ENABLESOFTCOMPAT_PARMNUM) #define SV_ENABLEFORCEDLOGOFF_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_ENABLEFORCEDLOGOFF_PARMNUM) #define SV_TIMESOURCE_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_TIMESOURCE_PARMNUM) #define SV_LMANNOUNCE_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_LMANNOUNCE_PARMNUM) #define SV_MAXCOPYREADLEN_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_MAXCOPYREADLEN_PARMNUM) #define SV_MAXCOPYWRITELEN_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_MAXCOPYWRITELEN_PARMNUM) #define SV_MINKEEPSEARCH_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_MINKEEPSEARCH_PARMNUM) #define SV_MAXKEEPSEARCH_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_MAXKEEPSEARCH_PARMNUM) #define SV_MINKEEPCOMPLSEARCH_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_MINKEEPCOMPLSEARCH_PARMNUM) #define SV_MAXKEEPCOMPLSEARCH_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_MAXKEEPCOMPLSEARCH_PARMNUM) #define SV_SCAVTIMEOUT_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_SCAVTIMEOUT_PARMNUM) #define SV_MINRCVQUEUE_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_MINRCVQUEUE_PARMNUM) #define SV_MINFREEWORKITEMS_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_MINFREEWORKITEMS_PARMNUM) #define SV_MAXMPXCT_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_MAXMPXCT_PARMNUM) #define SV_OPLOCKBREAKWAIT_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_OPLOCKBREAKWAIT_PARMNUM) #define SV_OPLOCKBREAKRESPONSEWAIT_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_OPLOCKBREAKRESPONSEWAIT_PARMNUM) #define SV_ENABLEOPLOCKS_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_ENABLEOPLOCKS_PARMNUM) #define SV_ENABLEOPLOCKFORCECLOSE_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_ENABLEOPLOCKFORCECLOSE_PARMNUM) #define SV_ENABLEFCBOPENS_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_ENABLEFCBOPENS_PARMNUM) #define SV_ENABLERAW_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_ENABLERAW_PARMNUM) #define SV_ENABLESHAREDNETDRIVES_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_ENABLESHAREDNETDRIVES_PARMNUM) #define SV_MINFREECONNECTIONS_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_MINFREECONNECTIONS_PARMNUM) #define SV_MAXFREECONNECTIONS_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_MAXFREECONNECTIONS_PARMNUM) #define SV_INITSESSTABLE_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_INITSESSTABLE_PARMNUM) #define SV_INITCONNTABLE_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_INITCONNTABLE_PARMNUM) #define SV_INITFILETABLE_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_INITFILETABLE_PARMNUM) #define SV_INITSEARCHTABLE_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_INITSEARCHTABLE_PARMNUM) #define SV_ALERTSCHEDULE_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_ALERTSCHEDULE_PARMNUM) #define SV_ERRORTHRESHOLD_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_ERRORTHRESHOLD_PARMNUM) #define SV_NETWORKERRORTHRESHOLD_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_NETWORKERRORTHRESHOLD_PARMNUM) #define SV_DISKSPACETHRESHOLD_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_DISKSPACETHRESHOLD_PARMNUM) #define SV_MAXLINKDELAY_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_MAXLINKDELAY_PARMNUM) #define SV_MINLINKTHROUGHPUT_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_MINLINKTHROUGHPUT_PARMNUM) #define SV_LINKINFOVALIDTIME_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_LINKINFOVALIDTIME_PARMNUM) #define SV_SCAVQOSINFOUPDATETIME_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_SCAVQOSINFOUPDATETIME_PARMNUM) #define SV_MAXWORKITEMIDLETIME_INFOLEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_MAXWORKITEMIDLETIME_PARMNUM) #define SV_MAXRAWWORKITEMS_INFOLOEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_MAXRAWWORKITEMS_PARMNUM) #define SV_NONBLOCKINGTHREADS_INFOLOEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_NONBLOCKINGTHREADS_PARMNUM) #define SV_BLOCKINGTHREADS_INFOLOEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_BLOCKINGTHREADS_PARMNUM) #define SV_PRODUCTTYPE_INFOLOEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_PRODUCTTYPE_PARMNUM) #define SV_SERVERSIZE_INFOLOEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_SERVERSIZE_PARMNUM) #define SV_CONNECTIONLESSAUTODISC_INFOLOEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_CONNECTIONLESSAUTODISC_PARMNUM) #define SV_SHARINGVIOLATIONRETRIES_INFOLOEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_SHARINGVIOLATIONRETRIES_PARMNUM) #define SV_SHARINGVIOLATIONDELAY_INFOLOEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_SHARINGVIOLATIONDELAY_PARMNUM) #define SV_MAXGLOBALOPENSEARCH_INFOLOEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_MAXGLOBALOPENSEARCH_PARMNUM) #define SV_REMOVEDUPLICATESEARCHES_INFOLOEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_REMOVEDUPLICATESEARCHES_PARMNUM) #define SV_LOCKVIOLATIONRETRIES_INFOLOEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_LOCKVIOLATIONRETRIES_PARMNUM) #define SV_LOCKVIOLATIONOFFSET_INFOLOEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_LOCKVIOLATIONOFFSET_PARMNUM) #define SV_LOCKVIOLATIONDELAY_INFOLOEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_LOCKVIOLATIONDELAY_PARMNUM) #define SV_MDLREADSWITCHOVER_INFOLOEVEL \ (PARMNUM_BASE_INFOLEVEL + SV_MDLREADSWITCHOVER_PARMNUM) #define SVI1_NUM_ELEMENTS 5 #define SVI2_NUM_ELEMENTS 40 #define SVI3_NUM_ELEMENTS 44 // // Maxmimum length for command string to NetServerAdminCommand. // #define SV_MAX_CMD_LEN PATHLEN // // Masks describing AUTOPROFILE parameters // #define SW_AUTOPROF_LOAD_MASK 0x1 #define SW_AUTOPROF_SAVE_MASK 0x2 // // Max size of svX_srvheuristics. // #define SV_MAX_SRV_HEUR_LEN 32 // Max heuristics info string length. // // Equate for use with sv102_licenses. // #define SV_USERS_PER_LICENSE 5 #ifdef __cplusplus } #endif #endif // _LMSERVER_