| 1 | #pragma once | 
 
 
 
 
 | 2 |  | 
 
 
 
 
 | 3 | #define __NET_PNP__ | 
 
 
 
 
 | 4 |  | 
 
 
 
 
 | 5 | typedef enum _NET_DEVICE_POWER_STATE { | 
 
 
 
 
 | 6 | NetDeviceStateUnspecified = 0, | 
 
 
 
 
 | 7 | NetDeviceStateD0, | 
 
 
 
 
 | 8 | NetDeviceStateD1, | 
 
 
 
 
 | 9 | NetDeviceStateD2, | 
 
 
 
 
 | 10 | NetDeviceStateD3, | 
 
 
 
 
 | 11 | NetDeviceStateMaximum | 
 
 
 
 
 | 12 | } NET_DEVICE_POWER_STATE, *PNET_DEVICE_POWER_STATE; | 
 
 
 
 
 | 13 |  | 
 
 
 
 
 | 14 | typedef enum _NET_PNP_EVENT_CODE { | 
 
 
 
 
 | 15 | NetEventSetPower, | 
 
 
 
 
 | 16 | NetEventQueryPower, | 
 
 
 
 
 | 17 | NetEventQueryRemoveDevice, | 
 
 
 
 
 | 18 | NetEventCancelRemoveDevice, | 
 
 
 
 
 | 19 | NetEventReconfigure, | 
 
 
 
 
 | 20 | NetEventBindList, | 
 
 
 
 
 | 21 | NetEventBindsComplete, | 
 
 
 
 
 | 22 | NetEventPnPCapabilities, | 
 
 
 
 
 | 23 | NetEventPause, | 
 
 
 
 
 | 24 | NetEventRestart, | 
 
 
 
 
 | 25 | NetEventPortActivation, | 
 
 
 
 
 | 26 | NetEventPortDeactivation, | 
 
 
 
 
 | 27 | NetEventIMReEnableDevice, | 
 
 
 
 
 | 28 | NetEventMaximum | 
 
 
 
 
 | 29 | } NET_PNP_EVENT_CODE, *PNET_PNP_EVENT_CODE; | 
 
 
 
 
 | 30 |  | 
 
 
 
 
 | 31 | typedef struct _NET_PNP_EVENT { | 
 
 
 
 
 | 32 | NET_PNP_EVENT_CODE NetEvent; | 
 
 
 
 
 | 33 | PVOID Buffer; | 
 
 
 
 
 | 34 | ULONG BufferLength; | 
 
 
 
 
 | 35 | ULONG_PTR NdisReserved[4]; | 
 
 
 
 
 | 36 | ULONG_PTR TransportReserved[4]; | 
 
 
 
 
 | 37 | ULONG_PTR TdiReserved[4]; | 
 
 
 
 
 | 38 | ULONG_PTR TdiClientReserved[4]; | 
 
 
 
 
 | 39 | } NET_PNP_EVENT, *PNET_PNP_EVENT; | 
 
 
 
 
 | 40 |  | 
 
 
 
 
 | 41 | /* FIXME : This belongs to ndis.h */ | 
 
 
 
 
 | 42 | typedef enum _NDIS_DEVICE_PNP_EVENT { | 
 
 
 
 
 | 43 | NdisDevicePnPEventSurpriseRemoved, | 
 
 
 
 
 | 44 | NdisDevicePnPEventPowerProfileChanged, | 
 
 
 
 
 | 45 | NdisDevicePnPEventMaximum | 
 
 
 
 
 | 46 | } NDIS_DEVICE_PNP_EVENT, *PNDIS_DEVICE_PNP_EVENT; |