4 #pragma GCC system_header
10 #define STATSOPT_CLR 1
11 #define STATS_NO_VALUE ((ULONG)-1)
12 #define STATS_OVERFLOW ((ULONG)-2)
13 typedef struct _STAT_SERVER_0
{
17 DWORD sts0_jobsqueued
;
22 DWORD sts0_permerrors
;
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
{
45 DWORD stw0_sessfailcon
;
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
;
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
;
83 DWORD RandomReadOperations
;
87 DWORD WriteOperations
;
88 DWORD RandomWriteOperations
;
93 DWORD RawWritesDenied
;
99 DWORD Lanman20Connects
;
100 DWORD Lanman21Connects
;
101 DWORD LanmanNtConnects
;
102 DWORD ServerDisconnects
;
105 DWORD FailedUseCount
;
106 DWORD CurrentCommands
;
107 } STAT_WORKSTATION_0
,*PSTAT_WORKSTATION_0
,*LPSTAT_WORKSTATION_0
;
110 NET_API_STATUS WINAPI
NetStatisticsGet(LPWSTR
,LPWSTR
,DWORD
,DWORD
,PBYTE
*);