1 | /*
|
---|
2 | * Copyright 2003 Geoff Thorpe
|
---|
3 | *
|
---|
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.
|
---|
8 | *
|
---|
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.
|
---|
13 | *
|
---|
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
|
---|
17 | */
|
---|
18 |
|
---|
19 | /*
|
---|
20 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | #ifndef __WINE_LMSTATS_H
|
---|
29 | #define __WINE_LMSTATS_H
|
---|
30 |
|
---|
31 | #include <lmcons.h>
|
---|
32 |
|
---|
33 | #ifdef __cplusplus
|
---|
34 | extern "C" {
|
---|
35 | #endif
|
---|
36 |
|
---|
37 | typedef struct _STAT_WORKSTATION_0 {
|
---|
38 | LARGE_INTEGER StatisticsStartTime;
|
---|
39 | LARGE_INTEGER BytesReceived;
|
---|
40 | LARGE_INTEGER SmbsReceived;
|
---|
41 | LARGE_INTEGER PagingReadBytesRequested;
|
---|
42 | LARGE_INTEGER NonPagingReadBytesRequested;
|
---|
43 | LARGE_INTEGER CacheReadBytesRequested;
|
---|
44 | LARGE_INTEGER NetworkReadBytesRequested;
|
---|
45 | LARGE_INTEGER BytesTransmitted;
|
---|
46 | LARGE_INTEGER SmbsTransmitted;
|
---|
47 | LARGE_INTEGER PagingWriteBytesRequested;
|
---|
48 | LARGE_INTEGER NonPagingWriteBytesRequested;
|
---|
49 | LARGE_INTEGER CacheWriteBytesRequested;
|
---|
50 | LARGE_INTEGER NetworkWriteBytesRequested;
|
---|
51 | DWORD InitiallyFailedOperations;
|
---|
52 | DWORD FailedCompletionOperations;
|
---|
53 | DWORD ReadOperations;
|
---|
54 | DWORD RandomReadOperations;
|
---|
55 | DWORD ReadSmbs;
|
---|
56 | DWORD LargeReadSmbs;
|
---|
57 | DWORD SmallReadSmbs;
|
---|
58 | DWORD WriteOperations;
|
---|
59 | DWORD RandomWriteOperations;
|
---|
60 | DWORD WriteSmbs;
|
---|
61 | DWORD LargeWriteSmbs;
|
---|
62 | DWORD SmallWriteSmbs;
|
---|
63 | DWORD RawReadsDenied;
|
---|
64 | DWORD RawWritesDenied;
|
---|
65 | DWORD NetworkErrors;
|
---|
66 | DWORD Sessions;
|
---|
67 | DWORD FailedSessions;
|
---|
68 | DWORD Reconnects;
|
---|
69 | DWORD CoreConnects;
|
---|
70 | DWORD Lanman20Connects;
|
---|
71 | DWORD Lanman21Connects;
|
---|
72 | DWORD LanmanNtConnects;
|
---|
73 | DWORD ServerDisconnects;
|
---|
74 | DWORD HungSessions;
|
---|
75 | DWORD UseCount;
|
---|
76 | DWORD FailedUseCount;
|
---|
77 | DWORD CurrentCommands;
|
---|
78 | } STAT_WORKSTATION_0, *PSTAT_WORKSTATION_0, *LPSTAT_WORKSTATION_0;
|
---|
79 |
|
---|
80 | typedef struct _STAT_SERVER_0 {
|
---|
81 | DWORD sts0_start;
|
---|
82 | DWORD sts0_fopens;
|
---|
83 | DWORD sts0_devopens;
|
---|
84 | DWORD sts0_jobsqueued;
|
---|
85 | DWORD sts0_sopens;
|
---|
86 | DWORD sts0_stimedout;
|
---|
87 | DWORD sts0_serrorout;
|
---|
88 | DWORD sts0_pwerrors;
|
---|
89 | DWORD sts0_permerrors;
|
---|
90 | DWORD sts0_syserrors;
|
---|
91 | DWORD sts0_bytessent_low;
|
---|
92 | DWORD sts0_bytessent_high;
|
---|
93 | DWORD sts0_bytesrcvd_low;
|
---|
94 | DWORD sts0_bytesrcvd_high;
|
---|
95 | DWORD sts0_avresponse;
|
---|
96 | DWORD sts0_reqbufneed;
|
---|
97 | DWORD sts0_bigbufneed;
|
---|
98 | } STAT_SERVER_0, *PSTAT_SERVER_0, *LPSTAT_SERVER_0;
|
---|
99 |
|
---|
100 | NET_API_STATUS WINAPI NetStatisticsGet(LPWSTR server, LPWSTR service, DWORD level,
|
---|
101 | DWORD options, LPBYTE *bufptr);
|
---|
102 |
|
---|
103 | #ifdef __cplusplus
|
---|
104 | }
|
---|
105 | #endif
|
---|
106 |
|
---|
107 | #endif
|
---|