Import w32api version 2.5 include files
[reactos.git] / reactos / w32api / include / ddk / netpnp.h
1 /*
2 * netpnp.h
3 *
4 * Network Plug and Play event support
5 *
6 * This file is part of the w32api package.
7 *
8 * Contributors:
9 * Created by Casper S. Hornstrup <chorns@users.sourceforge.net>
10 *
11 * THIS SOFTWARE IS NOT COPYRIGHTED
12 *
13 * This source code is offered for use in the public domain. You may
14 * use, modify or distribute it freely.
15 *
16 * This code is distributed in the hope that it will be useful but
17 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
18 * DISCLAIMED. This includes but is not limited to warranties of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20 *
21 */
22
23 #ifndef __NETPNP_H
24 #define __NETPNP_H
25
26 #if __GNUC__ >=3
27 #pragma GCC system_header
28 #endif
29
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33
34 #pragma pack(push,4)
35
36 typedef enum _NET_PNP_EVENT_CODE {
37 NetEventSetPower,
38 NetEventQueryPower,
39 NetEventQueryRemoveDevice,
40 NetEventCancelRemoveDevice,
41 NetEventReconfigure,
42 NetEventBindList,
43 NetEventBindsComplete,
44 NetEventPnPCapabilities,
45 NetEventMaximum
46 } NET_PNP_EVENT_CODE, *PNET_PNP_EVENT_CODE;
47
48 typedef struct _NET_PNP_EVENT {
49 NET_PNP_EVENT_CODE NetEvent;
50 PVOID Buffer;
51 ULONG BufferLength;
52 ULONG_PTR NdisReserved[4];
53 ULONG_PTR TransportReserved[4];
54 ULONG_PTR TdiReserved[4];
55 ULONG_PTR TdiClientReserved[4];
56 } NET_PNP_EVENT, *PNET_PNP_EVENT;
57
58 typedef enum _NET_DEVICE_POWER_STATE {
59 NetDeviceStateUnspecified,
60 NetDeviceStateD0,
61 NetDeviceStateD1,
62 NetDeviceStateD2,
63 NetDeviceStateD3,
64 NetDeviceStateMaximum
65 } NET_DEVICE_POWER_STATE, *PNET_DEVICE_POWER_STATE;
66
67 #pragma pack(pop)
68
69 #ifdef __cplusplus
70 }
71 #endif
72
73 #endif /* __NETPNP_H */