home *** CD-ROM | disk | FTP | other *** search
- /**************************************************************************/
- /* */
- /* IBM OS/2(tm) Local Area Network (LAN) Server */
- /* Version 3.0 */
- /* (c) Copyright International Business Machines Corporation, 1988, 1992 */
- /* */
- /**************************************************************************/
- /********************************************************************/
-
- /********************************************************************
- * *
- * About this file ... NETSTATS.H *
- * *
- * This file contains information about the NetStatistics APIs. *
- * *
- * Function prototypes. *
- * *
- * Data structure templates. *
- * *
- * Definition of special values. *
- * *
- * *
- * NOTE: You must include NETCONS.H before this file, since this *
- * file depends on values defined in NETCONS.H. *
- * *
- ********************************************************************/
-
-
- #ifdef ANY_32_BIT
- #pragma pack(1)
- #endif
-
-
-
- #ifndef NETSTATS_INCLUDED
-
- #define NETSTATS_INCLUDED
- #define NETSTATS_INC
-
-
- /****************************************************************
- * *
- * Function prototypes *
- * *
- ****************************************************************/
-
- extern API_FUNCTION
- NetStatisticsClear ( const unsigned char LSFAR * pszServer );
-
- extern API_FUNCTION
- NetStatisticsGet ( const unsigned char LSFAR * pszServer,
- unsigned char LSFAR * pbBuffer,
- unsigned short cbBuffer,
- unsigned short LSFAR * pcbReturned,
- unsigned short LSFAR * pcbTotalAvail );
-
- extern API_FUNCTION
- NetStatisticsGet2 ( const unsigned char LSFAR * pszServer,
- const unsigned char LSFAR * pszService,
- unsigned long ulReserved,
- short sLevel,
- unsigned long flOptions,
- unsigned char LSFAR * pbBuffer,
- unsigned short cbBuffer,
- unsigned short LSFAR * pcbTotalAvail );
-
-
- #ifdef PURE_32
- /****************************************************************
- * *
- * Function prototypes *
- * For "pure" 32-bit applications *
- * *
- ****************************************************************/
-
- extern API32_FUNCTION
- Net32StatisticsGet2 ( const unsigned char * pszServer,
- const unsigned char * pszService,
- unsigned long ulReserved,
- unsigned long ulLevel, /*was signed short*/
- unsigned long flOptions,
- unsigned char * pbBuffer,
- unsigned long ulBuffer, /*was USHORT*/
- unsigned long * pulTotalAvail ); /*was PUSHORT*/
- #endif /* PURE_32 */
-
-
- /****************************************************************
- * *
- * Special values and constants *
- * *
- ****************************************************************/
-
-
- #define STATSOPT_CLR 1
- #define STATS_NO_VALUE ((unsigned long) -1L)
- #define STATS_OVERFLOW ((unsigned long) -2L)
-
-
- /****************************************************************
- * *
- * Data structure templates *
- * *
- ****************************************************************/
-
-
-
-
-
-
- struct statistics_info_0 {
- unsigned long st0_start; /* time statistics collection started */
- unsigned long st0_wknumNCBs; /* # workstation NCBs issued */
- unsigned long st0_wkfiNCBs; /* # workstation NCBs failed issue */
- unsigned long st0_wkfcNCBs; /* # workstation NCBs failed completion */
- unsigned long st0_wksesstart; /* # workstation sessions started */
- unsigned long st0_wksessfail; /* # workstation session failures */
- unsigned long st0_wkuses; /* # workstation uses */
- unsigned long st0_wkusefail; /* # workstation use failures */
- unsigned long st0_wkautorec; /* # workstation auto-reconnects */
- unsigned long st0_rdrnumNCBs; /* # redir NCBs issued */
- unsigned long st0_srvnumNCBs; /* # NCBs issued for the server */
- unsigned long st0_usrnumNCBs; /* # user NCBs issued */
- unsigned long st0_reserved4; /* reserved for future use */
- unsigned long st0_reserved5; /* reserved for future use */
- unsigned long st0_reserved6; /* reserved for future use */
- unsigned long st0_reserved7; /* reserved for future use */
- unsigned long st0_reserved8; /* reserved for future use */
- unsigned long st0_svfopens; /* # of server file opens */
- unsigned long st0_svdevopens; /* # of server device opens */
- unsigned long st0_svjobsqueued; /* # of server print jobs spooled */
- unsigned long st0_svsopens; /* # of server session starts */
- unsigned long st0_svstimedout; /* # of server session auto-disconnects */
- unsigned long st0_svserrorout; /* # of server sessions errored out */
- unsigned long st0_svpwerrors; /* # of server password violations */
- unsigned long st0_svpermerrors; /* # of server access permission errors */
- unsigned long st0_svsyserrors; /* # of server system errors */
- unsigned long st0_svbytessent; /* # of server bytes sent to net */
- unsigned long st0_svbytesrcvd; /* # of server bytes received from net */
- unsigned long st0_svavresponse; /* average server response time in msec */
- }; /* statistics_info_0 */
-
-
-
- struct stat_workstation_0 {
- unsigned long stw0_start;
- unsigned long stw0_numNCB_r;
- unsigned long stw0_numNCB_s;
- unsigned long stw0_numNCB_a;
- unsigned long stw0_fiNCB_r;
- unsigned long stw0_fiNCB_s;
- unsigned long stw0_fiNCB_a;
- unsigned long stw0_fcNCB_r;
- unsigned long stw0_fcNCB_s;
- unsigned long stw0_fcNCB_a;
- unsigned long stw0_sesstart;
- unsigned long stw0_sessfailcon;
- unsigned long stw0_sessbroke;
- unsigned long stw0_uses;
- unsigned long stw0_usefail;
- unsigned long stw0_autorec;
- unsigned long stw0_bytessent_r_lo;
- unsigned long stw0_bytessent_r_hi;
- unsigned long stw0_bytesrcvd_r_lo;
- unsigned long stw0_bytesrcvd_r_hi;
- unsigned long stw0_bytessent_s_lo;
- unsigned long stw0_bytessent_s_hi;
- unsigned long stw0_bytesrcvd_s_lo;
- unsigned long stw0_bytesrcvd_s_hi;
- unsigned long stw0_bytessent_a_lo;
- unsigned long stw0_bytessent_a_hi;
- unsigned long stw0_bytesrcvd_a_lo;
- unsigned long stw0_bytesrcvd_a_hi;
- unsigned long stw0_reqbufneed;
- unsigned long stw0_bigbufneed;
- }; /* stat_workstation_0 */
-
-
- struct stat_server_0 {
- unsigned long sts0_start;
- unsigned long sts0_fopens;
- unsigned long sts0_devopens;
- unsigned long sts0_jobsqueued;
- unsigned long sts0_sopens;
- unsigned long sts0_stimedout;
- unsigned long sts0_serrorout;
- unsigned long sts0_pwerrors;
- unsigned long sts0_permerrors;
- unsigned long sts0_syserrors;
- unsigned long sts0_bytessent_low;
- unsigned long sts0_bytessent_high;
- unsigned long sts0_bytesrcvd_low;
- unsigned long sts0_bytesrcvd_high;
- unsigned long sts0_avresponse;
- unsigned long sts0_reqbufneed;
- unsigned long sts0_bigbufneed;
- }; /* stat_server_0 */
-
-
- #endif /* NETSTATS_INCLUDED */
-
- #ifdef MIXED_32
- #pragma linkage (NetStatisticsClear, far16 pascal)
- #pragma linkage (NetStatisticsGet, far16 pascal)
- #pragma linkage (NetStatisticsGet2, far16 pascal)
- #pragma pack()
- #endif
-