суббота, 11 сентября 2010 г.

NDIS object types

смотрел я давеча примерчик network\ndis\filter из wdk7, и потратил довольно большое количество времени на отыскание всяких констант вроде NDIS_OBJECT_TYPE_DEVICE_OBJECT_ATTRIBUTES
Выяснилось что их определения лежат в файле inc\api\ntddndis.h, так что перепощу их здесь (мало ли - может у кого wdk нету например)

/* used when object type is implicit in the API call */
#define NDIS_OBJECT_TYPE_DEFAULT                                    0x80

/* used by NDIS in NDIS_MINIPORT_INIT_PARAMETERS */
#define NDIS_OBJECT_TYPE_MINIPORT_INIT_PARAMETERS 0x81
/* used by miniport drivers in NDIS_SG_DMA_DESCRIPTION */
#define NDIS_OBJECT_TYPE_SG_DMA_DESCRIPTION 0x83
/* used by miniport drivers in NDIS_MINIPORT_INTERRUPT_EX */
#define NDIS_OBJECT_TYPE_MINIPORT_INTERRUPT 0x84
/* used by miniport or filter drivers in NDIS_DEVICE_OBJECT_ATTRIBUTES */
#define NDIS_OBJECT_TYPE_DEVICE_OBJECT_ATTRIBUTES 0x85
/* used by NDIS in NDIS_BIND_PARAMETERS */
#define NDIS_OBJECT_TYPE_BIND_PARAMETERS 0x86
/* used by protocols in NDIS_OPEN_PARAMETERS */
#define NDIS_OBJECT_TYPE_OPEN_PARAMETERS 0x87
/* used by miniport in NDIS_RECEIVE_SCALE_CAPABILITIES */
#define NDIS_OBJECT_TYPE_RSS_CAPABILITIES 0x88
/* used by miniport and protocol in NDIS_RECEIVE_SCALE_PARAMETERS */
#define NDIS_OBJECT_TYPE_RSS_PARAMETERS 0x89
/* used in NDIS_MINIPORT_DRIVER_CHARACTERISTICS */
#define NDIS_OBJECT_TYPE_MINIPORT_DRIVER_CHARACTERISTICS 0x8A
/* used in NDIS_FILTER_DRIVER_CHARACTERISTICS */
#define NDIS_OBJECT_TYPE_FILTER_DRIVER_CHARACTERISTICS 0x8B
/* used in NDIS_FILTER_PARTIAL_CHARACTERISTICS */
#define NDIS_OBJECT_TYPE_FILTER_PARTIAL_CHARACTERISTICS 0x8C
/* used in NDIS_FILTER_ATTRIBUTES */
#define NDIS_OBJECT_TYPE_FILTER_ATTRIBUTES 0x8D #define NDIS_OBJECT_TYPE_CLIENT_CHIMNEY_OFFLOAD_GENERIC_CHARACTERISTICS 0x8E #define NDIS_OBJECT_TYPE_PROVIDER_CHIMNEY_OFFLOAD_GENERIC_CHARACTERISTICS 0x8F #define NDIS_OBJECT_TYPE_CO_PROTOCOL_CHARACTERISTICS 0x90 #define NDIS_OBJECT_TYPE_CO_MINIPORT_CHARACTERISTICS 0x91
/* used in NDIS_MINIPORT_PNP_CHARACTERISTICS */
#define NDIS_OBJECT_TYPE_MINIPORT_PNP_CHARACTERISTICS 0x92 #define NDIS_OBJECT_TYPE_CLIENT_CHIMNEY_OFFLOAD_CHARACTERISTICS 0x93 #define NDIS_OBJECT_TYPE_PROVIDER_CHIMNEY_OFFLOAD_CHARACTERISTICS 0x94
/* used in NDIS_PROTOCOL_DRIVER_CHARACTERISTICS */
#define NDIS_OBJECT_TYPE_PROTOCOL_DRIVER_CHARACTERISTICS 0x95 #define NDIS_OBJECT_TYPE_REQUEST_EX 0x96
/* used in NDIS_OID_REQUEST */
#define NDIS_OBJECT_TYPE_OID_REQUEST 0x96
/* used in NDIS_TIMER_CHARACTERISTICS */
#define NDIS_OBJECT_TYPE_TIMER_CHARACTERISTICS 0x97
/* used in NDIS_STATUS_INDICATION */
#define NDIS_OBJECT_TYPE_STATUS_INDICATION 0x98 #define NDIS_OBJECT_TYPE_FILTER_ATTACH_PARAMETERS 0x99 #define NDIS_OBJECT_TYPE_FILTER_PAUSE_PARAMETERS 0x9A #define NDIS_OBJECT_TYPE_FILTER_RESTART_PARAMETERS 0x9B #define NDIS_OBJECT_TYPE_PORT_CHARACTERISTICS 0x9C #define NDIS_OBJECT_TYPE_PORT_STATE 0x9D
/* used in NDIS_MINIPORT_ADAPTER_ATTRIBUTES.RegistrationAttributes.Header.Type */
#define NDIS_OBJECT_TYPE_MINIPORT_ADAPTER_REGISTRATION_ATTRIBUTES 0x9E
/* used in NDIS_MINIPORT_ADAPTER_ATTRIBUTES.GeneralAttributes.Header.Type */
#define NDIS_OBJECT_TYPE_MINIPORT_ADAPTER_GENERAL_ATTRIBUTES 0x9F
/* used in NDIS_MINIPORT_ADAPTER_ATTRIBUTES.OffloadAttributes.Header.Type */
#define NDIS_OBJECT_TYPE_MINIPORT_ADAPTER_OFFLOAD_ATTRIBUTES 0xA0
/* used in NDIS_MINIPORT_ADAPTER_ATTRIBUTES.Native_802_11_Attributes.Header.Type */
#define NDIS_OBJECT_TYPE_MINIPORT_ADAPTER_NATIVE_802_11_ATTRIBUTES 0xA1 #define NDIS_OBJECT_TYPE_RESTART_GENERAL_ATTRIBUTES 0xA2 #define NDIS_OBJECT_TYPE_PROTOCOL_RESTART_PARAMETERS 0xA3
/* used in NDIS_MINIPORT_ADD_DEVICE_REGISTRATION_ATTRIBUTES */
#define NDIS_OBJECT_TYPE_MINIPORT_ADD_DEVICE_REGISTRATION_ATTRIBUTES 0xA4 #define NDIS_OBJECT_TYPE_CO_CALL_MANAGER_OPTIONAL_HANDLERS 0xA5 #define NDIS_OBJECT_TYPE_CO_CLIENT_OPTIONAL_HANDLERS 0xA6 #define NDIS_OBJECT_TYPE_OFFLOAD 0xA7
/* used in NDIS_OFFLOAD_ENCAPSULATION */
#define NDIS_OBJECT_TYPE_OFFLOAD_ENCAPSULATION 0xA8
/* used in DIS_CONFIGURATION_OBJECT */
#define NDIS_OBJECT_TYPE_CONFIGURATION_OBJECT 0xA9 #define NDIS_OBJECT_TYPE_DRIVER_WRAPPER_OBJECT 0xAA
/* used in NDIS_HD_SPLIT_ATTRIBUTES */
#define NDIS_OBJECT_TYPE_HD_SPLIT_ATTRIBUTES 0xAB #define NDIS_OBJECT_TYPE_NSI_NETWORK_RW_STRUCT 0xAC #define NDIS_OBJECT_TYPE_NSI_COMPARTMENT_RW_STRUCT 0xAD #define NDIS_OBJECT_TYPE_NSI_INTERFACE_PERSIST_RW_STRUCT 0xAE
/* used in NDIS_MINIPORT_ADAPTER_HARDWARE_ASSIST_ATTRIBUTES */
#define NDIS_OBJECT_TYPE_MINIPORT_ADAPTER_HARDWARE_ASSIST_ATTRIBUTES 0xAF #define NDIS_OBJECT_TYPE_SHARED_MEMORY_PROVIDER_CHARACTERISTICS 0xB0 #define NDIS_OBJECT_TYPE_RSS_PROCESSOR_INFO 0xB1

Комментариев нет:

Отправить комментарий