Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.5 KiB

  1. #ifndef __NET_PNP__
  2. #define __NET_PNP__
  3. //
  4. // PnP and PM event codes that can be indicated up to transports
  5. // and clients.
  6. //
  7. typedef enum _NET_PNP_EVENT_CODE
  8. {
  9. NetEventSetPower,
  10. NetEventQueryPower,
  11. NetEventQueryRemoveDevice,
  12. NetEventCancelRemoveDevice,
  13. NetEventReconfigure,
  14. NetEventBindList,
  15. NetEventBindsComplete,
  16. NetEventPnPCapabilities,
  17. NetEventMaximum
  18. } NET_PNP_EVENT_CODE, *PNET_PNP_EVENT_CODE;
  19. //
  20. // Networking PnP event indication structure.
  21. //
  22. typedef struct _NET_PNP_EVENT
  23. {
  24. //
  25. // Event code describing action to take.
  26. //
  27. NET_PNP_EVENT_CODE NetEvent;
  28. //
  29. // Event specific data.
  30. //
  31. PVOID Buffer;
  32. //
  33. // Length of event specific data.
  34. //
  35. ULONG BufferLength;
  36. //
  37. // Reserved values are for use by respective components only.
  38. //
  39. // Note: these reserved areas must be pointer aligned.
  40. //
  41. ULONG_PTR NdisReserved[4];
  42. ULONG_PTR TransportReserved[4];
  43. ULONG_PTR TdiReserved[4];
  44. ULONG_PTR TdiClientReserved[4];
  45. } NET_PNP_EVENT, *PNET_PNP_EVENT;
  46. //
  47. // The following structure defines the device power states.
  48. //
  49. typedef enum _NET_DEVICE_POWER_STATE
  50. {
  51. NetDeviceStateUnspecified = 0,
  52. NetDeviceStateD0,
  53. NetDeviceStateD1,
  54. NetDeviceStateD2,
  55. NetDeviceStateD3,
  56. NetDeviceStateMaximum
  57. } NET_DEVICE_POWER_STATE, *PNET_DEVICE_POWER_STATE;
  58. #endif // __NET_PNP__