netpnp.h 1.1 KB

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