7 #define STATS_NO_VALUE ((ULONG)-1)
8 #define STATS_OVERFLOW ((ULONG)-2)
9 typedef struct _STAT_SERVER_0
{
13 DWORD sts0_jobsqueued
;
18 DWORD sts0_permerrors
;
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
{
41 DWORD stw0_sessfailcon
;
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
;
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
;
79 DWORD RandomReadOperations
;
83 DWORD WriteOperations
;
84 DWORD RandomWriteOperations
;
89 DWORD RawWritesDenied
;
95 DWORD Lanman20Connects
;
96 DWORD Lanman21Connects
;
97 DWORD LanmanNtConnects
;
98 DWORD ServerDisconnects
;
101 DWORD FailedUseCount
;
102 DWORD CurrentCommands
;
103 } STAT_WORKSTATION_0
,*PSTAT_WORKSTATION_0
,*LPSTAT_WORKSTATION_0
;
106 NET_API_STATUS WINAPI
NetStatisticsGet(LPWSTR
,LPWSTR
,DWORD
,DWORD
,PBYTE
*);