Reactos

[DDK][PSDK] Add some missing NDIS definitions/types. Caught by Benjamin Aerni.

+32 -8
+19 -1
sdk/include/ddk/ndis.h
··· 986 986 typedef struct _OID_LIST OID_LIST, *POID_LIST; 987 987 988 988 /* PnP state */ 989 - 990 989 typedef enum _NDIS_PNP_DEVICE_STATE { 991 990 NdisPnPDeviceAdded, 992 991 NdisPnPDeviceStarted, ··· 996 995 NdisPnPDeviceRemoved, 997 996 NdisPnPDeviceSurpriseRemoved 998 997 } NDIS_PNP_DEVICE_STATE; 998 + 999 + typedef enum _NDIS_DEVICE_PNP_EVENT { 1000 + NdisDevicePnPEventQueryRemoved, 1001 + NdisDevicePnPEventRemoved, 1002 + NdisDevicePnPEventSurpriseRemoved, 1003 + NdisDevicePnPEventQueryStopped, 1004 + NdisDevicePnPEventStopped, 1005 + NdisDevicePnPEventPowerProfileChanged, 1006 + #if NDIS_SUPPORT_NDIS6 1007 + NdisDevicePnPEventFilterListChanged, 1008 + #endif /* NDIS_SUPPORT_NDIS6 */ 1009 + NdisDevicePnPEventMaximum 1010 + } NDIS_DEVICE_PNP_EVENT, *PNDIS_DEVICE_PNP_EVENT; 1011 + 1012 + /* Power profiles */ 1013 + typedef enum _NDIS_POWER_PROFILE { 1014 + NdisPowerProfileBattery, 1015 + NdisPowerProfileAcOnLine 1016 + } NDIS_POWER_PROFILE, *PNDIS_POWER_PROFILE; 999 1017 1000 1018 #define NDIS_DEVICE_NOT_STOPPABLE 0x00000001 1001 1019 #define NDIS_DEVICE_NOT_REMOVEABLE 0x00000002
-7
sdk/include/ddk/netpnp.h
··· 37 37 ULONG_PTR TdiReserved[4]; 38 38 ULONG_PTR TdiClientReserved[4]; 39 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;
+13
sdk/include/psdk/ntddndis.h
··· 318 318 #define OID_802_11_WEP_STATUS 0x0D01011B 319 319 #define OID_802_11_RELOAD_DEFAULTS 0x0D01011C 320 320 321 + /* PnP and Power Management (PM) OIDs */ 322 + #define OID_PNP_CAPABILITIES 0xFD010100 323 + #define OID_PNP_SET_POWER 0xFD010101 324 + #define OID_PNP_QUERY_POWER 0xFD010102 325 + #define OID_PNP_ADD_WAKE_UP_PATTERN 0xFD010103 326 + #define OID_PNP_REMOVE_WAKE_UP_PATTERN 0xFD010104 327 + #define OID_PNP_WAKE_UP_PATTERN_LIST 0xFD010105 328 + #define OID_PNP_ENABLE_WAKE_UP 0xFD010106 329 + 330 + /* Optional PnP/PM statistics OIDs */ 331 + #define OID_PNP_WAKE_UP_OK 0xFD020200 332 + #define OID_PNP_WAKE_UP_ERROR 0xFD020201 333 + 321 334 /* OID_GEN_MINIPORT_INFO constants */ 322 335 #define NDIS_MINIPORT_BUS_MASTER 0x00000001 323 336 #define NDIS_MINIPORT_WDM_DRIVER 0x00000002