home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 April / PCWorld_2008-04_cd.bin / temacd / devc++ / devcpp-4.9.9.2_setup.exe / lmstats.h < prev    next >
C/C++ Source or Header  |  2005-01-29  |  3KB  |  115 lines

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