home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 November / PCWorld_2000-11_cd.bin / Software / Topware / devc40 / _SETUP.5 / Group3 / lmstats.h < prev    next >
C/C++ Source or Header  |  1999-11-07  |  3KB  |  111 lines

  1. #ifndef _LMSTATS_H
  2. #define _LMSTATS_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #define STATSOPT_CLR 1
  7. #define STATS_NO_VALUE ((ULONG)-1)
  8. #define STATS_OVERFLOW ((ULONG)-2)
  9. typedef struct _STAT_SERVER_0 {
  10.     DWORD sts0_start;
  11.     DWORD sts0_fopens;
  12.     DWORD sts0_devopens;
  13.     DWORD sts0_jobsqueued;
  14.     DWORD sts0_sopens;
  15.     DWORD sts0_stimedout;
  16.     DWORD sts0_serrorout;
  17.     DWORD sts0_pwerrors;
  18.     DWORD sts0_permerrors;
  19.     DWORD sts0_syserrors;
  20.     DWORD sts0_bytessent_low;
  21.     DWORD sts0_bytessent_high;
  22.     DWORD sts0_bytesrcvd_low;
  23.     DWORD sts0_bytesrcvd_high;
  24.     DWORD sts0_avresponse;
  25.     DWORD sts0_reqbufneed;
  26.     DWORD sts0_bigbufneed;
  27. } STAT_SERVER_0,*PSTAT_SERVER_0,*LPSTAT_SERVER_0;
  28. #ifdef LM20_WORKSTATION_STATISTICS
  29. typedef struct _STAT_WORKSTATION_0 {
  30.     DWORD stw0_start;
  31.     DWORD stw0_numNCB_r;
  32.     DWORD stw0_numNCB_s;
  33.     DWORD stw0_numNCB_a;
  34.     DWORD stw0_fiNCB_r;
  35.     DWORD stw0_fiNCB_s;
  36.     DWORD stw0_fiNCB_a;
  37.     DWORD stw0_fcNCB_r;
  38.     DWORD stw0_fcNCB_s;
  39.     DWORD stw0_fcNCB_a;
  40.     DWORD stw0_sesstart;
  41.     DWORD stw0_sessfailcon;
  42.     DWORD stw0_sessbroke;
  43.     DWORD stw0_uses;
  44.     DWORD stw0_usefail;
  45.     DWORD stw0_autorec;
  46.     DWORD stw0_bytessent_r_lo;
  47.     DWORD stw0_bytessent_r_hi;
  48.     DWORD stw0_bytesrcvd_r_lo;
  49.     DWORD stw0_bytesrcvd_r_hi;
  50.     DWORD stw0_bytessent_s_lo;
  51.     DWORD stw0_bytessent_s_hi;
  52.     DWORD stw0_bytesrcvd_s_lo;
  53.     DWORD stw0_bytesrcvd_s_hi;
  54.     DWORD stw0_bytessent_a_lo;
  55.     DWORD stw0_bytessent_a_hi;
  56.     DWORD stw0_bytesrcvd_a_lo;
  57.     DWORD stw0_bytesrcvd_a_hi;
  58.     DWORD stw0_reqbufneed;
  59.     DWORD stw0_bigbufneed;
  60. } STAT_WORKSTATION_0,*PSTAT_WORKSTATION_0,*LPSTAT_WORKSTATION_0;
  61. #else
  62. typedef struct _STAT_WORKSTATION_0 {
  63.     LARGE_INTEGER StatisticsStartTime;
  64.     LARGE_INTEGER BytesReceived;
  65.     LARGE_INTEGER SmbsReceived;
  66.     LARGE_INTEGER PagingReadBytesRequested;
  67.     LARGE_INTEGER NonPagingReadBytesRequested;
  68.     LARGE_INTEGER CacheReadBytesRequested;
  69.     LARGE_INTEGER NetworkReadBytesRequested;
  70.     LARGE_INTEGER BytesTransmitted;
  71.     LARGE_INTEGER SmbsTransmitted;
  72.     LARGE_INTEGER PagingWriteBytesRequested;
  73.     LARGE_INTEGER NonPagingWriteBytesRequested;
  74.     LARGE_INTEGER CacheWriteBytesRequested;
  75.     LARGE_INTEGER NetworkWriteBytesRequested;
  76.     DWORD InitiallyFailedOperations;
  77.     DWORD FailedCompletionOperations;
  78.     DWORD ReadOperations;
  79.     DWORD RandomReadOperations;
  80.     DWORD ReadSmbs;
  81.     DWORD LargeReadSmbs;
  82.     DWORD SmallReadSmbs;
  83.     DWORD WriteOperations;
  84.     DWORD RandomWriteOperations;
  85.     DWORD WriteSmbs;
  86.     DWORD LargeWriteSmbs;
  87.     DWORD SmallWriteSmbs;
  88.     DWORD RawReadsDenied;
  89.     DWORD RawWritesDenied;
  90.     DWORD NetworkErrors;
  91.     DWORD Sessions;
  92.     DWORD FailedSessions;
  93.     DWORD Reconnects;
  94.     DWORD CoreConnects;
  95.     DWORD Lanman20Connects;
  96.     DWORD Lanman21Connects;
  97.     DWORD LanmanNtConnects;
  98.     DWORD ServerDisconnects;
  99.     DWORD HungSessions;
  100.     DWORD UseCount;
  101.     DWORD FailedUseCount;
  102.     DWORD CurrentCommands;
  103. } STAT_WORKSTATION_0,*PSTAT_WORKSTATION_0,*LPSTAT_WORKSTATION_0;
  104. #endif
  105.  
  106. NET_API_STATUS WINAPI NetStatisticsGet(LPTSTR,LPTSTR,DWORD,DWORD,PBYTE*);
  107. #ifdef __cplusplus
  108. }
  109. #endif
  110. #endif 
  111.