OSDN Git Service

Insert removed author attribution.
[mingw/mingw-org-wsl.git] / include / ddk / netpnp.h
1 /**
2  * @file netpnp.h
3  * @copy 2012 MinGW.org project
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a
6  * copy of this software and associated documentation files (the "Software"),
7  * to deal in the Software without restriction, including without limitation
8  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9  * and/or sell copies of the Software, and to permit persons to whom the
10  * Software is furnished to do so, subject to the following conditions:
11  * 
12  * The above copyright notice and this permission notice (including the next
13  * paragraph) shall be included in all copies or substantial portions of the
14  * Software.
15  * 
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  * DEALINGS IN THE SOFTWARE.
23  */
24 /* Created by Casper S. Hornstrup <chorns@users.sourceforge.net> */
25 #ifndef __NETPNP_H
26 #define __NETPNP_H
27 #pragma GCC system_header
28 #include <_mingw.h>
29
30 /*
31  * Network Plug and Play event support
32  */
33
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37
38 typedef enum _NET_PNP_EVENT_CODE {
39   NetEventSetPower,
40   NetEventQueryPower,
41   NetEventQueryRemoveDevice,
42   NetEventCancelRemoveDevice,
43   NetEventReconfigure,
44   NetEventBindList,
45   NetEventBindsComplete,
46   NetEventPnPCapabilities,
47   NetEventMaximum
48 } NET_PNP_EVENT_CODE, *PNET_PNP_EVENT_CODE;
49
50 typedef struct _NET_PNP_EVENT {
51   NET_PNP_EVENT_CODE  NetEvent;
52   PVOID  Buffer;
53   ULONG  BufferLength;
54   ULONG_PTR  NdisReserved[4];
55   ULONG_PTR  TransportReserved[4];
56   ULONG_PTR  TdiReserved[4];
57   ULONG_PTR  TdiClientReserved[4];
58 } NET_PNP_EVENT, *PNET_PNP_EVENT;
59
60 typedef enum _NET_DEVICE_POWER_STATE {
61   NetDeviceStateUnspecified,
62   NetDeviceStateD0,
63   NetDeviceStateD1,
64   NetDeviceStateD2,
65   NetDeviceStateD3,
66   NetDeviceStateMaximum
67 } NET_DEVICE_POWER_STATE, *PNET_DEVICE_POWER_STATE;
68
69 #ifdef __cplusplus
70 }
71 #endif
72
73 #endif /* __NETPNP_H */