Initial bulk commit for "Git on MSys"
[msysgit/historical-msysgit.git] / mingw / include / ddk / netpnp.h
blob09ea55e182ba64d0ae8a19444596c74f3b41501e
1 /*
2 * netpnp.h
4 * Network Plug and Play event support
6 * This file is part of the w32api package.
8 * Contributors:
9 * Created by Casper S. Hornstrup <chorns@users.sourceforge.net>
11 * THIS SOFTWARE IS NOT COPYRIGHTED
13 * This source code is offered for use in the public domain. You may
14 * use, modify or distribute it freely.
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.
23 #ifndef __NETPNP_H
24 #define __NETPNP_H
26 #if __GNUC__ >=3
27 #pragma GCC system_header
28 #endif
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
34 typedef enum _NET_PNP_EVENT_CODE {
35 NetEventSetPower,
36 NetEventQueryPower,
37 NetEventQueryRemoveDevice,
38 NetEventCancelRemoveDevice,
39 NetEventReconfigure,
40 NetEventBindList,
41 NetEventBindsComplete,
42 NetEventPnPCapabilities,
43 NetEventMaximum
44 } NET_PNP_EVENT_CODE, *PNET_PNP_EVENT_CODE;
46 typedef struct _NET_PNP_EVENT {
47 NET_PNP_EVENT_CODE NetEvent;
48 PVOID Buffer;
49 ULONG BufferLength;
50 ULONG_PTR NdisReserved[4];
51 ULONG_PTR TransportReserved[4];
52 ULONG_PTR TdiReserved[4];
53 ULONG_PTR TdiClientReserved[4];
54 } NET_PNP_EVENT, *PNET_PNP_EVENT;
56 typedef enum _NET_DEVICE_POWER_STATE {
57 NetDeviceStateUnspecified,
58 NetDeviceStateD0,
59 NetDeviceStateD1,
60 NetDeviceStateD2,
61 NetDeviceStateD3,
62 NetDeviceStateMaximum
63 } NET_DEVICE_POWER_STATE, *PNET_DEVICE_POWER_STATE;
65 #ifdef __cplusplus
67 #endif
69 #endif /* __NETPNP_H */