2 * Copyright 2003 Geoff Thorpe
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef __WINE_LMSTATS_H
20 #define __WINE_LMSTATS_H
28 typedef struct _STAT_WORKSTATION_0 {
29 LARGE_INTEGER StatisticsStartTime;
30 LARGE_INTEGER BytesReceived;
31 LARGE_INTEGER SmbsReceived;
32 LARGE_INTEGER PagingReadBytesRequested;
33 LARGE_INTEGER NonPagingReadBytesRequested;
34 LARGE_INTEGER CacheReadBytesRequested;
35 LARGE_INTEGER NetworkReadBytesRequested;
36 LARGE_INTEGER BytesTransmitted;
37 LARGE_INTEGER SmbsTransmitted;
38 LARGE_INTEGER PagingWriteBytesRequested;
39 LARGE_INTEGER NonPagingWriteBytesRequested;
40 LARGE_INTEGER CacheWriteBytesRequested;
41 LARGE_INTEGER NetworkWriteBytesRequested;
42 DWORD InitiallyFailedOperations;
43 DWORD FailedCompletionOperations;
45 DWORD RandomReadOperations;
49 DWORD WriteOperations;
50 DWORD RandomWriteOperations;
55 DWORD RawWritesDenied;
61 DWORD Lanman20Connects;
62 DWORD Lanman21Connects;
63 DWORD LanmanNtConnects;
64 DWORD ServerDisconnects;
68 DWORD CurrentCommands;
69 } STAT_WORKSTATION_0, *PSTAT_WORKSTATION_0, *LPSTAT_WORKSTATION_0;
71 typedef struct _STAT_SERVER_0 {
75 DWORD sts0_jobsqueued;
80 DWORD sts0_permerrors;
82 DWORD sts0_bytessent_low;
83 DWORD sts0_bytessent_high;
84 DWORD sts0_bytesrcvd_low;
85 DWORD sts0_bytesrcvd_high;
86 DWORD sts0_avresponse;
87 DWORD sts0_reqbufneed;
88 DWORD sts0_bigbufneed;
89 } STAT_SERVER_0, *PSTAT_SERVER_0, *LPSTAT_SERVER_0;
91 NET_API_STATUS WINAPI NetStatisticsGet(LPWSTR server, LPWSTR service, DWORD level,
92 DWORD options, LPBYTE *bufptr);