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

  1. /*++ BUILD Version: 0001    // Increment this if a change has global effects
  2.  
  3. Copyright (c) 1991-1999  Microsoft Corporation
  4.  
  5. Module Name:
  6.  
  7.     lmstats.h
  8.  
  9. Abstract:
  10.  
  11.     This module defines the API function prototypes and data structures
  12.     for the following groups of NT API functions:
  13.         NetStatistics
  14.  
  15. Environment:
  16.  
  17.     User Mode - Win32
  18.  
  19. Notes:
  20.  
  21.     You must include NETCONS.H before this file, since this file depends
  22.     on values defined in NETCONS.H.
  23.  
  24. --*/
  25.  
  26. #ifndef _LMSTATS_
  27. #pragma option push -b -a8 -pc -A- /*P_O_Push*/
  28. #define _LMSTATS_
  29.  
  30. #if _MSC_VER > 1000
  31. #pragma once
  32. #endif
  33.  
  34. #ifdef __cplusplus
  35. extern "C" {
  36. #endif
  37.  
  38. #include <lmcons.h>
  39.  
  40. //
  41. // Function Prototypes - Statistics
  42. //
  43.  
  44. NET_API_STATUS NET_API_FUNCTION
  45. NetStatisticsGet (
  46.     IN  LMSTR   server,
  47.     IN  LMSTR   service,
  48.     IN  DWORD   level,
  49.     IN  DWORD   options,
  50.     OUT LPBYTE  *bufptr
  51.     );
  52.  
  53. //
  54. // Data Structures - Statistics
  55. //
  56.  
  57. #ifdef LM20_WORKSTATION_STATISTICS
  58. typedef struct _STAT_WORKSTATION_0 {
  59.      DWORD          stw0_start;
  60.      DWORD          stw0_numNCB_r;
  61.      DWORD          stw0_numNCB_s;
  62.      DWORD          stw0_numNCB_a;
  63.      DWORD          stw0_fiNCB_r;
  64.      DWORD          stw0_fiNCB_s;
  65.      DWORD          stw0_fiNCB_a;
  66.      DWORD          stw0_fcNCB_r;
  67.      DWORD          stw0_fcNCB_s;
  68.      DWORD          stw0_fcNCB_a;
  69.      DWORD          stw0_sesstart;
  70.      DWORD          stw0_sessfailcon;
  71.      DWORD          stw0_sessbroke;
  72.      DWORD          stw0_uses;
  73.      DWORD          stw0_usefail;
  74.      DWORD          stw0_autorec;
  75.      DWORD          stw0_bytessent_r_lo;
  76.      DWORD          stw0_bytessent_r_hi;
  77.      DWORD          stw0_bytesrcvd_r_lo;
  78.      DWORD          stw0_bytesrcvd_r_hi;
  79.      DWORD          stw0_bytessent_s_lo;
  80.      DWORD          stw0_bytessent_s_hi;
  81.      DWORD          stw0_bytesrcvd_s_lo;
  82.      DWORD          stw0_bytesrcvd_s_hi;
  83.      DWORD          stw0_bytessent_a_lo;
  84.      DWORD          stw0_bytessent_a_hi;
  85.      DWORD          stw0_bytesrcvd_a_lo;
  86.      DWORD          stw0_bytesrcvd_a_hi;
  87.      DWORD          stw0_reqbufneed;
  88.      DWORD          stw0_bigbufneed;
  89. } STAT_WORKSTATION_0, *PSTAT_WORKSTATION_0, *LPSTAT_WORKSTATION_0;
  90. #else
  91.  
  92. //
  93. // NB: The following structure is REDIR_STATISTICS in sdk\inc\ntddnfs.h. If you
  94. //     change the structure, change it in both places
  95. //
  96.  
  97. typedef struct _STAT_WORKSTATION_0 {
  98.     LARGE_INTEGER   StatisticsStartTime;
  99.  
  100.     LARGE_INTEGER   BytesReceived;
  101.     LARGE_INTEGER   SmbsReceived;
  102.     LARGE_INTEGER   PagingReadBytesRequested;
  103.     LARGE_INTEGER   NonPagingReadBytesRequested;
  104.     LARGE_INTEGER   CacheReadBytesRequested;
  105.     LARGE_INTEGER   NetworkReadBytesRequested;
  106.  
  107.     LARGE_INTEGER   BytesTransmitted;
  108.     LARGE_INTEGER   SmbsTransmitted;
  109.     LARGE_INTEGER   PagingWriteBytesRequested;
  110.     LARGE_INTEGER   NonPagingWriteBytesRequested;
  111.     LARGE_INTEGER   CacheWriteBytesRequested;
  112.     LARGE_INTEGER   NetworkWriteBytesRequested;
  113.  
  114.     DWORD           InitiallyFailedOperations;
  115.     DWORD           FailedCompletionOperations;
  116.  
  117.     DWORD           ReadOperations;
  118.     DWORD           RandomReadOperations;
  119.     DWORD           ReadSmbs;
  120.     DWORD           LargeReadSmbs;
  121.     DWORD           SmallReadSmbs;
  122.  
  123.     DWORD           WriteOperations;
  124.     DWORD           RandomWriteOperations;
  125.     DWORD           WriteSmbs;
  126.     DWORD           LargeWriteSmbs;
  127.     DWORD           SmallWriteSmbs;
  128.  
  129.     DWORD           RawReadsDenied;
  130.     DWORD           RawWritesDenied;
  131.  
  132.     DWORD           NetworkErrors;
  133.  
  134.     //  Connection/Session counts
  135.     DWORD           Sessions;
  136.     DWORD           FailedSessions;
  137.     DWORD           Reconnects;
  138.     DWORD           CoreConnects;
  139.     DWORD           Lanman20Connects;
  140.     DWORD           Lanman21Connects;
  141.     DWORD           LanmanNtConnects;
  142.     DWORD           ServerDisconnects;
  143.     DWORD           HungSessions;
  144.     DWORD           UseCount;
  145.     DWORD           FailedUseCount;
  146.  
  147.     //
  148.     //  Queue Lengths (updates protected by RdrMpxTableSpinLock NOT
  149.     //  RdrStatisticsSpinlock)
  150.     //
  151.  
  152.     DWORD           CurrentCommands;
  153.  
  154. } STAT_WORKSTATION_0, *PSTAT_WORKSTATION_0, *LPSTAT_WORKSTATION_0;
  155. #endif
  156.  
  157. typedef struct _STAT_SERVER_0 {
  158.      DWORD          sts0_start;
  159.      DWORD          sts0_fopens;
  160.      DWORD          sts0_devopens;
  161.      DWORD          sts0_jobsqueued;
  162.      DWORD          sts0_sopens;
  163.      DWORD          sts0_stimedout;
  164.      DWORD          sts0_serrorout;
  165.      DWORD          sts0_pwerrors;
  166.      DWORD          sts0_permerrors;
  167.      DWORD          sts0_syserrors;
  168.      DWORD          sts0_bytessent_low;
  169.      DWORD          sts0_bytessent_high;
  170.      DWORD          sts0_bytesrcvd_low;
  171.      DWORD          sts0_bytesrcvd_high;
  172.      DWORD          sts0_avresponse;
  173.      DWORD          sts0_reqbufneed;
  174.      DWORD          sts0_bigbufneed;
  175. } STAT_SERVER_0, *PSTAT_SERVER_0, *LPSTAT_SERVER_0;
  176.  
  177.  
  178. //
  179. // Special Values and Constants
  180. //
  181.  
  182. #define STATSOPT_CLR    1
  183. #define STATS_NO_VALUE  ((unsigned long) -1L)
  184. #define STATS_OVERFLOW  ((unsigned long) -2L)
  185.  
  186.  
  187. #ifdef __cplusplus
  188. }
  189. #endif
  190.  
  191. #pragma option pop /*P_O_Pop*/
  192. #endif // _LMSTATS.H
  193.