Home | History | Annotate | Download | only in include
      1 /**
      2  * This file has no copyright assigned and is placed in the Public Domain.
      3  * This file is part of the mingw-w64 runtime package.
      4  * No warranty is given; refer to the file DISCLAIMER.PD within this package.
      5  */
      6 #ifndef _NTDDNDIS_
      7 #define _NTDDNDIS_
      8 
      9 #ifdef __cplusplus
     10 extern "C" {
     11 #endif
     12 
     13 #define DD_NDIS_DEVICE_NAME "\\Device\\UNKNOWN"
     14 
     15 #define _NDIS_CONTROL_CODE(request,method) CTL_CODE(FILE_DEVICE_PHYSICAL_NETCARD,request,method,FILE_ANY_ACCESS)
     16 
     17 #define IOCTL_NDIS_QUERY_GLOBAL_STATS _NDIS_CONTROL_CODE(0,METHOD_OUT_DIRECT)
     18 #define IOCTL_NDIS_QUERY_ALL_STATS _NDIS_CONTROL_CODE(1,METHOD_OUT_DIRECT)
     19 #define IOCTL_NDIS_DO_PNP_OPERATION _NDIS_CONTROL_CODE(2,METHOD_BUFFERED)
     20 #define IOCTL_NDIS_QUERY_SELECTED_STATS _NDIS_CONTROL_CODE(3,METHOD_OUT_DIRECT)
     21 #define IOCTL_NDIS_ENUMERATE_INTERFACES _NDIS_CONTROL_CODE(4,METHOD_BUFFERED)
     22 #define IOCTL_NDIS_ADD_TDI_DEVICE _NDIS_CONTROL_CODE(5,METHOD_BUFFERED)
     23 #define IOCTL_NDIS_GET_LOG_DATA _NDIS_CONTROL_CODE(7,METHOD_OUT_DIRECT)
     24 #define IOCTL_NDIS_GET_VERSION _NDIS_CONTROL_CODE(8,METHOD_BUFFERED)
     25 #define IOCTL_NDIS_RESERVED7 _NDIS_CONTROL_CODE(0xF,METHOD_OUT_DIRECT)
     26 
     27   typedef ULONG NDIS_OID,*PNDIS_OID;
     28 
     29   typedef UNALIGNED struct _NDIS_STATISTICS_VALUE {
     30     NDIS_OID Oid;
     31     ULONG DataLength;
     32     UCHAR Data[1];
     33   } NDIS_STATISTICS_VALUE,*PNDIS_STATISTICS_VALUE;
     34 
     35   typedef struct _NDIS_VAR_DATA_DESC {
     36     USHORT Length;
     37     USHORT MaximumLength;
     38     ULONG_PTR Offset;
     39   } NDIS_VAR_DATA_DESC,*PNDIS_VAR_DATA_DESC;
     40 
     41 #include <guiddef.h>
     42 
     43   typedef struct _NDIS_OBJECT_HEADER {
     44     UCHAR  Type;
     45     UCHAR  Revision;
     46     USHORT Size;
     47   } NDIS_OBJECT_HEADER, *PNDIS_OBJECT_HEADER;
     48 
     49 #define OID_GEN_SUPPORTED_LIST 0x00010101
     50 #define OID_GEN_HARDWARE_STATUS 0x00010102
     51 #define OID_GEN_MEDIA_SUPPORTED 0x00010103
     52 #define OID_GEN_MEDIA_IN_USE 0x00010104
     53 #define OID_GEN_MAXIMUM_LOOKAHEAD 0x00010105
     54 #define OID_GEN_MAXIMUM_FRAME_SIZE 0x00010106
     55 #define OID_GEN_LINK_SPEED 0x00010107
     56 #define OID_GEN_TRANSMIT_BUFFER_SPACE 0x00010108
     57 #define OID_GEN_RECEIVE_BUFFER_SPACE 0x00010109
     58 #define OID_GEN_TRANSMIT_BLOCK_SIZE 0x0001010A
     59 #define OID_GEN_RECEIVE_BLOCK_SIZE 0x0001010B
     60 #define OID_GEN_VENDOR_ID 0x0001010C
     61 #define OID_GEN_VENDOR_DESCRIPTION 0x0001010D
     62 #define OID_GEN_CURRENT_PACKET_FILTER 0x0001010E
     63 #define OID_GEN_CURRENT_LOOKAHEAD 0x0001010F
     64 #define OID_GEN_DRIVER_VERSION 0x00010110
     65 #define OID_GEN_MAXIMUM_TOTAL_SIZE 0x00010111
     66 #define OID_GEN_PROTOCOL_OPTIONS 0x00010112
     67 #define OID_GEN_MAC_OPTIONS 0x00010113
     68 #define OID_GEN_MEDIA_CONNECT_STATUS 0x00010114
     69 #define OID_GEN_MAXIMUM_SEND_PACKETS 0x00010115
     70 
     71 #define OID_GEN_VENDOR_DRIVER_VERSION 0x00010116
     72 #define OID_GEN_SUPPORTED_GUIDS 0x00010117
     73 #define OID_GEN_NETWORK_LAYER_ADDRESSES 0x00010118
     74 #define OID_GEN_TRANSPORT_HEADER_OFFSET 0x00010119
     75 #define OID_GEN_MACHINE_NAME 0x0001021A
     76 #define OID_GEN_RNDIS_CONFIG_PARAMETER 0x0001021B
     77 #define OID_GEN_VLAN_ID 0x0001021C
     78 #define OID_GEN_MEDIA_CAPABILITIES 0x00010201
     79 #define OID_GEN_PHYSICAL_MEDIUM 0x00010202
     80 
     81 #define OID_GEN_XMIT_OK 0x00020101
     82 #define OID_GEN_RCV_OK 0x00020102
     83 #define OID_GEN_XMIT_ERROR 0x00020103
     84 #define OID_GEN_RCV_ERROR 0x00020104
     85 #define OID_GEN_RCV_NO_BUFFER 0x00020105
     86 
     87 #define OID_GEN_DIRECTED_BYTES_XMIT 0x00020201
     88 #define OID_GEN_DIRECTED_FRAMES_XMIT 0x00020202
     89 #define OID_GEN_MULTICAST_BYTES_XMIT 0x00020203
     90 #define OID_GEN_MULTICAST_FRAMES_XMIT 0x00020204
     91 #define OID_GEN_BROADCAST_BYTES_XMIT 0x00020205
     92 #define OID_GEN_BROADCAST_FRAMES_XMIT 0x00020206
     93 #define OID_GEN_DIRECTED_BYTES_RCV 0x00020207
     94 #define OID_GEN_DIRECTED_FRAMES_RCV 0x00020208
     95 #define OID_GEN_MULTICAST_BYTES_RCV 0x00020209
     96 #define OID_GEN_MULTICAST_FRAMES_RCV 0x0002020A
     97 #define OID_GEN_BROADCAST_BYTES_RCV 0x0002020B
     98 #define OID_GEN_BROADCAST_FRAMES_RCV 0x0002020C
     99 
    100 #define OID_GEN_RCV_CRC_ERROR 0x0002020D
    101 #define OID_GEN_TRANSMIT_QUEUE_LENGTH 0x0002020E
    102 
    103 #define OID_GEN_GET_TIME_CAPS 0x0002020F
    104 #define OID_GEN_GET_NETCARD_TIME 0x00020210
    105 #define OID_GEN_NETCARD_LOAD 0x00020211
    106 #define OID_GEN_DEVICE_PROFILE 0x00020212
    107 
    108 #define OID_GEN_INIT_TIME_MS 0x00020213
    109 #define OID_GEN_RESET_COUNTS 0x00020214
    110 #define OID_GEN_MEDIA_SENSE_COUNTS 0x00020215
    111 #define OID_GEN_FRIENDLY_NAME 0x00020216
    112 #define OID_GEN_MINIPORT_INFO 0x00020217
    113 #define OID_GEN_RESET_VERIFY_PARAMETERS 0x00020218
    114 
    115 #define OID_GEN_CO_SUPPORTED_LIST OID_GEN_SUPPORTED_LIST
    116 #define OID_GEN_CO_HARDWARE_STATUS OID_GEN_HARDWARE_STATUS
    117 #define OID_GEN_CO_MEDIA_SUPPORTED OID_GEN_MEDIA_SUPPORTED
    118 #define OID_GEN_CO_MEDIA_IN_USE OID_GEN_MEDIA_IN_USE
    119 #define OID_GEN_CO_LINK_SPEED OID_GEN_LINK_SPEED
    120 #define OID_GEN_CO_VENDOR_ID OID_GEN_VENDOR_ID
    121 #define OID_GEN_CO_VENDOR_DESCRIPTION OID_GEN_VENDOR_DESCRIPTION
    122 #define OID_GEN_CO_DRIVER_VERSION OID_GEN_DRIVER_VERSION
    123 #define OID_GEN_CO_PROTOCOL_OPTIONS OID_GEN_PROTOCOL_OPTIONS
    124 #define OID_GEN_CO_MAC_OPTIONS OID_GEN_MAC_OPTIONS
    125 #define OID_GEN_CO_MEDIA_CONNECT_STATUS OID_GEN_MEDIA_CONNECT_STATUS
    126 #define OID_GEN_CO_VENDOR_DRIVER_VERSION OID_GEN_VENDOR_DRIVER_VERSION
    127 #define OID_GEN_CO_SUPPORTED_GUIDS OID_GEN_SUPPORTED_GUIDS
    128 #define OID_GEN_CO_GET_TIME_CAPS OID_GEN_GET_TIME_CAPS
    129 #define OID_GEN_CO_GET_NETCARD_TIME OID_GEN_GET_NETCARD_TIME
    130 #define OID_GEN_CO_MINIMUM_LINK_SPEED 0x00020120
    131 
    132 #define OID_GEN_CO_XMIT_PDUS_OK OID_GEN_XMIT_OK
    133 #define OID_GEN_CO_RCV_PDUS_OK OID_GEN_RCV_OK
    134 #define OID_GEN_CO_XMIT_PDUS_ERROR OID_GEN_XMIT_ERROR
    135 #define OID_GEN_CO_RCV_PDUS_ERROR OID_GEN_RCV_ERROR
    136 #define OID_GEN_CO_RCV_PDUS_NO_BUFFER OID_GEN_RCV_NO_BUFFER
    137 
    138 #define OID_GEN_CO_RCV_CRC_ERROR OID_GEN_RCV_CRC_ERROR
    139 #define OID_GEN_CO_TRANSMIT_QUEUE_LENGTH OID_GEN_TRANSMIT_QUEUE_LENGTH
    140 #define OID_GEN_CO_BYTES_XMIT OID_GEN_DIRECTED_BYTES_XMIT
    141 #define OID_GEN_CO_BYTES_RCV OID_GEN_DIRECTED_BYTES_RCV
    142 #define OID_GEN_CO_NETCARD_LOAD OID_GEN_NETCARD_LOAD
    143 #define OID_GEN_CO_DEVICE_PROFILE OID_GEN_DEVICE_PROFILE
    144 #define OID_GEN_CO_BYTES_XMIT_OUTSTANDING 0x00020221
    145 
    146 #define OID_802_3_PERMANENT_ADDRESS 0x01010101
    147 #define OID_802_3_CURRENT_ADDRESS 0x01010102
    148 #define OID_802_3_MULTICAST_LIST 0x01010103
    149 #define OID_802_3_MAXIMUM_LIST_SIZE 0x01010104
    150 #define OID_802_3_MAC_OPTIONS 0x01010105
    151 
    152 #define NDIS_802_3_MAC_OPTION_PRIORITY 0x00000001
    153 
    154 #define OID_802_3_RCV_ERROR_ALIGNMENT 0x01020101
    155 #define OID_802_3_XMIT_ONE_COLLISION 0x01020102
    156 #define OID_802_3_XMIT_MORE_COLLISIONS 0x01020103
    157 
    158 #define OID_802_3_XMIT_DEFERRED 0x01020201
    159 #define OID_802_3_XMIT_MAX_COLLISIONS 0x01020202
    160 #define OID_802_3_RCV_OVERRUN 0x01020203
    161 #define OID_802_3_XMIT_UNDERRUN 0x01020204
    162 #define OID_802_3_XMIT_HEARTBEAT_FAILURE 0x01020205
    163 #define OID_802_3_XMIT_TIMES_CRS_LOST 0x01020206
    164 #define OID_802_3_XMIT_LATE_COLLISIONS 0x01020207
    165 
    166 #define OID_802_5_PERMANENT_ADDRESS 0x02010101
    167 #define OID_802_5_CURRENT_ADDRESS 0x02010102
    168 #define OID_802_5_CURRENT_FUNCTIONAL 0x02010103
    169 #define OID_802_5_CURRENT_GROUP 0x02010104
    170 #define OID_802_5_LAST_OPEN_STATUS 0x02010105
    171 #define OID_802_5_CURRENT_RING_STATUS 0x02010106
    172 #define OID_802_5_CURRENT_RING_STATE 0x02010107
    173 
    174 #define OID_802_5_LINE_ERRORS 0x02020101
    175 #define OID_802_5_LOST_FRAMES 0x02020102
    176 
    177 #define OID_802_5_BURST_ERRORS 0x02020201
    178 #define OID_802_5_AC_ERRORS 0x02020202
    179 #define OID_802_5_ABORT_DELIMETERS 0x02020203
    180 #define OID_802_5_FRAME_COPIED_ERRORS 0x02020204
    181 #define OID_802_5_FREQUENCY_ERRORS 0x02020205
    182 #define OID_802_5_TOKEN_ERRORS 0x02020206
    183 #define OID_802_5_INTERNAL_ERRORS 0x02020207
    184 
    185 #define OID_FDDI_LONG_PERMANENT_ADDR 0x03010101
    186 #define OID_FDDI_LONG_CURRENT_ADDR 0x03010102
    187 #define OID_FDDI_LONG_MULTICAST_LIST 0x03010103
    188 #define OID_FDDI_LONG_MAX_LIST_SIZE 0x03010104
    189 #define OID_FDDI_SHORT_PERMANENT_ADDR 0x03010105
    190 #define OID_FDDI_SHORT_CURRENT_ADDR 0x03010106
    191 #define OID_FDDI_SHORT_MULTICAST_LIST 0x03010107
    192 #define OID_FDDI_SHORT_MAX_LIST_SIZE 0x03010108
    193 
    194 #define OID_FDDI_ATTACHMENT_TYPE 0x03020101
    195 #define OID_FDDI_UPSTREAM_NODE_LONG 0x03020102
    196 #define OID_FDDI_DOWNSTREAM_NODE_LONG 0x03020103
    197 #define OID_FDDI_FRAME_ERRORS 0x03020104
    198 #define OID_FDDI_FRAMES_LOST 0x03020105
    199 #define OID_FDDI_RING_MGT_STATE 0x03020106
    200 #define OID_FDDI_LCT_FAILURES 0x03020107
    201 #define OID_FDDI_LEM_REJECTS 0x03020108
    202 #define OID_FDDI_LCONNECTION_STATE 0x03020109
    203 
    204 #define OID_FDDI_SMT_STATION_ID 0x03030201
    205 #define OID_FDDI_SMT_OP_VERSION_ID 0x03030202
    206 #define OID_FDDI_SMT_HI_VERSION_ID 0x03030203
    207 #define OID_FDDI_SMT_LO_VERSION_ID 0x03030204
    208 #define OID_FDDI_SMT_MANUFACTURER_DATA 0x03030205
    209 #define OID_FDDI_SMT_USER_DATA 0x03030206
    210 #define OID_FDDI_SMT_MIB_VERSION_ID 0x03030207
    211 #define OID_FDDI_SMT_MAC_CT 0x03030208
    212 #define OID_FDDI_SMT_NON_MASTER_CT 0x03030209
    213 #define OID_FDDI_SMT_MASTER_CT 0x0303020A
    214 #define OID_FDDI_SMT_AVAILABLE_PATHS 0x0303020B
    215 #define OID_FDDI_SMT_CONFIG_CAPABILITIES 0x0303020C
    216 #define OID_FDDI_SMT_CONFIG_POLICY 0x0303020D
    217 #define OID_FDDI_SMT_CONNECTION_POLICY 0x0303020E
    218 #define OID_FDDI_SMT_T_NOTIFY 0x0303020F
    219 #define OID_FDDI_SMT_STAT_RPT_POLICY 0x03030210
    220 #define OID_FDDI_SMT_TRACE_MAX_EXPIRATION 0x03030211
    221 #define OID_FDDI_SMT_PORT_INDEXES 0x03030212
    222 #define OID_FDDI_SMT_MAC_INDEXES 0x03030213
    223 #define OID_FDDI_SMT_BYPASS_PRESENT 0x03030214
    224 #define OID_FDDI_SMT_ECM_STATE 0x03030215
    225 #define OID_FDDI_SMT_CF_STATE 0x03030216
    226 #define OID_FDDI_SMT_HOLD_STATE 0x03030217
    227 #define OID_FDDI_SMT_REMOTE_DISCONNECT_FLAG 0x03030218
    228 #define OID_FDDI_SMT_STATION_STATUS 0x03030219
    229 #define OID_FDDI_SMT_PEER_WRAP_FLAG 0x0303021A
    230 #define OID_FDDI_SMT_MSG_TIME_STAMP 0x0303021B
    231 #define OID_FDDI_SMT_TRANSITION_TIME_STAMP 0x0303021C
    232 #define OID_FDDI_SMT_SET_COUNT 0x0303021D
    233 #define OID_FDDI_SMT_LAST_SET_STATION_ID 0x0303021E
    234 #define OID_FDDI_MAC_FRAME_STATUS_FUNCTIONS 0x0303021F
    235 #define OID_FDDI_MAC_BRIDGE_FUNCTIONS 0x03030220
    236 #define OID_FDDI_MAC_T_MAX_CAPABILITY 0x03030221
    237 #define OID_FDDI_MAC_TVX_CAPABILITY 0x03030222
    238 #define OID_FDDI_MAC_AVAILABLE_PATHS 0x03030223
    239 #define OID_FDDI_MAC_CURRENT_PATH 0x03030224
    240 #define OID_FDDI_MAC_UPSTREAM_NBR 0x03030225
    241 #define OID_FDDI_MAC_DOWNSTREAM_NBR 0x03030226
    242 #define OID_FDDI_MAC_OLD_UPSTREAM_NBR 0x03030227
    243 #define OID_FDDI_MAC_OLD_DOWNSTREAM_NBR 0x03030228
    244 #define OID_FDDI_MAC_DUP_ADDRESS_TEST 0x03030229
    245 #define OID_FDDI_MAC_REQUESTED_PATHS 0x0303022A
    246 #define OID_FDDI_MAC_DOWNSTREAM_PORT_TYPE 0x0303022B
    247 #define OID_FDDI_MAC_INDEX 0x0303022C
    248 #define OID_FDDI_MAC_SMT_ADDRESS 0x0303022D
    249 #define OID_FDDI_MAC_LONG_GRP_ADDRESS 0x0303022E
    250 #define OID_FDDI_MAC_SHORT_GRP_ADDRESS 0x0303022F
    251 #define OID_FDDI_MAC_T_REQ 0x03030230
    252 #define OID_FDDI_MAC_T_NEG 0x03030231
    253 #define OID_FDDI_MAC_T_MAX 0x03030232
    254 #define OID_FDDI_MAC_TVX_VALUE 0x03030233
    255 #define OID_FDDI_MAC_T_PRI0 0x03030234
    256 #define OID_FDDI_MAC_T_PRI1 0x03030235
    257 #define OID_FDDI_MAC_T_PRI2 0x03030236
    258 #define OID_FDDI_MAC_T_PRI3 0x03030237
    259 #define OID_FDDI_MAC_T_PRI4 0x03030238
    260 #define OID_FDDI_MAC_T_PRI5 0x03030239
    261 #define OID_FDDI_MAC_T_PRI6 0x0303023A
    262 #define OID_FDDI_MAC_FRAME_CT 0x0303023B
    263 #define OID_FDDI_MAC_COPIED_CT 0x0303023C
    264 #define OID_FDDI_MAC_TRANSMIT_CT 0x0303023D
    265 #define OID_FDDI_MAC_TOKEN_CT 0x0303023E
    266 #define OID_FDDI_MAC_ERROR_CT 0x0303023F
    267 #define OID_FDDI_MAC_LOST_CT 0x03030240
    268 #define OID_FDDI_MAC_TVX_EXPIRED_CT 0x03030241
    269 #define OID_FDDI_MAC_NOT_COPIED_CT 0x03030242
    270 #define OID_FDDI_MAC_LATE_CT 0x03030243
    271 #define OID_FDDI_MAC_RING_OP_CT 0x03030244
    272 #define OID_FDDI_MAC_FRAME_ERROR_THRESHOLD 0x03030245
    273 #define OID_FDDI_MAC_FRAME_ERROR_RATIO 0x03030246
    274 #define OID_FDDI_MAC_NOT_COPIED_THRESHOLD 0x03030247
    275 #define OID_FDDI_MAC_NOT_COPIED_RATIO 0x03030248
    276 #define OID_FDDI_MAC_RMT_STATE 0x03030249
    277 #define OID_FDDI_MAC_DA_FLAG 0x0303024A
    278 #define OID_FDDI_MAC_UNDA_FLAG 0x0303024B
    279 #define OID_FDDI_MAC_FRAME_ERROR_FLAG 0x0303024C
    280 #define OID_FDDI_MAC_NOT_COPIED_FLAG 0x0303024D
    281 #define OID_FDDI_MAC_MA_UNITDATA_AVAILABLE 0x0303024E
    282 #define OID_FDDI_MAC_HARDWARE_PRESENT 0x0303024F
    283 #define OID_FDDI_MAC_MA_UNITDATA_ENABLE 0x03030250
    284 #define OID_FDDI_PATH_INDEX 0x03030251
    285 #define OID_FDDI_PATH_RING_LATENCY 0x03030252
    286 #define OID_FDDI_PATH_TRACE_STATUS 0x03030253
    287 #define OID_FDDI_PATH_SBA_PAYLOAD 0x03030254
    288 #define OID_FDDI_PATH_SBA_OVERHEAD 0x03030255
    289 #define OID_FDDI_PATH_CONFIGURATION 0x03030256
    290 #define OID_FDDI_PATH_T_R_MODE 0x03030257
    291 #define OID_FDDI_PATH_SBA_AVAILABLE 0x03030258
    292 #define OID_FDDI_PATH_TVX_LOWER_BOUND 0x03030259
    293 #define OID_FDDI_PATH_T_MAX_LOWER_BOUND 0x0303025A
    294 #define OID_FDDI_PATH_MAX_T_REQ 0x0303025B
    295 #define OID_FDDI_PORT_MY_TYPE 0x0303025C
    296 #define OID_FDDI_PORT_NEIGHBOR_TYPE 0x0303025D
    297 #define OID_FDDI_PORT_CONNECTION_POLICIES 0x0303025E
    298 #define OID_FDDI_PORT_MAC_INDICATED 0x0303025F
    299 #define OID_FDDI_PORT_CURRENT_PATH 0x03030260
    300 #define OID_FDDI_PORT_REQUESTED_PATHS 0x03030261
    301 #define OID_FDDI_PORT_MAC_PLACEMENT 0x03030262
    302 #define OID_FDDI_PORT_AVAILABLE_PATHS 0x03030263
    303 #define OID_FDDI_PORT_MAC_LOOP_TIME 0x03030264
    304 #define OID_FDDI_PORT_PMD_CLASS 0x03030265
    305 #define OID_FDDI_PORT_CONNECTION_CAPABILITIES 0x03030266
    306 #define OID_FDDI_PORT_INDEX 0x03030267
    307 #define OID_FDDI_PORT_MAINT_LS 0x03030268
    308 #define OID_FDDI_PORT_BS_FLAG 0x03030269
    309 #define OID_FDDI_PORT_PC_LS 0x0303026A
    310 #define OID_FDDI_PORT_EB_ERROR_CT 0x0303026B
    311 #define OID_FDDI_PORT_LCT_FAIL_CT 0x0303026C
    312 #define OID_FDDI_PORT_LER_ESTIMATE 0x0303026D
    313 #define OID_FDDI_PORT_LEM_REJECT_CT 0x0303026E
    314 #define OID_FDDI_PORT_LEM_CT 0x0303026F
    315 #define OID_FDDI_PORT_LER_CUTOFF 0x03030270
    316 #define OID_FDDI_PORT_LER_ALARM 0x03030271
    317 #define OID_FDDI_PORT_CONNNECT_STATE 0x03030272
    318 #define OID_FDDI_PORT_PCM_STATE 0x03030273
    319 #define OID_FDDI_PORT_PC_WITHHOLD 0x03030274
    320 #define OID_FDDI_PORT_LER_FLAG 0x03030275
    321 #define OID_FDDI_PORT_HARDWARE_PRESENT 0x03030276
    322 #define OID_FDDI_SMT_STATION_ACTION 0x03030277
    323 #define OID_FDDI_PORT_ACTION 0x03030278
    324 #define OID_FDDI_IF_DESCR 0x03030279
    325 #define OID_FDDI_IF_TYPE 0x0303027A
    326 #define OID_FDDI_IF_MTU 0x0303027B
    327 #define OID_FDDI_IF_SPEED 0x0303027C
    328 #define OID_FDDI_IF_PHYS_ADDRESS 0x0303027D
    329 #define OID_FDDI_IF_ADMIN_STATUS 0x0303027E
    330 #define OID_FDDI_IF_OPER_STATUS 0x0303027F
    331 #define OID_FDDI_IF_LAST_CHANGE 0x03030280
    332 #define OID_FDDI_IF_IN_OCTETS 0x03030281
    333 #define OID_FDDI_IF_IN_UCAST_PKTS 0x03030282
    334 #define OID_FDDI_IF_IN_NUCAST_PKTS 0x03030283
    335 #define OID_FDDI_IF_IN_DISCARDS 0x03030284
    336 #define OID_FDDI_IF_IN_ERRORS 0x03030285
    337 #define OID_FDDI_IF_IN_UNKNOWN_PROTOS 0x03030286
    338 #define OID_FDDI_IF_OUT_OCTETS 0x03030287
    339 #define OID_FDDI_IF_OUT_UCAST_PKTS 0x03030288
    340 #define OID_FDDI_IF_OUT_NUCAST_PKTS 0x03030289
    341 #define OID_FDDI_IF_OUT_DISCARDS 0x0303028A
    342 #define OID_FDDI_IF_OUT_ERRORS 0x0303028B
    343 #define OID_FDDI_IF_OUT_QLEN 0x0303028C
    344 #define OID_FDDI_IF_SPECIFIC 0x0303028D
    345 
    346 #define OID_WAN_PERMANENT_ADDRESS 0x04010101
    347 #define OID_WAN_CURRENT_ADDRESS 0x04010102
    348 #define OID_WAN_QUALITY_OF_SERVICE 0x04010103
    349 #define OID_WAN_PROTOCOL_TYPE 0x04010104
    350 #define OID_WAN_MEDIUM_SUBTYPE 0x04010105
    351 #define OID_WAN_HEADER_FORMAT 0x04010106
    352 
    353 #define OID_WAN_GET_INFO 0x04010107
    354 #define OID_WAN_SET_LINK_INFO 0x04010108
    355 #define OID_WAN_GET_LINK_INFO 0x04010109
    356 
    357 #define OID_WAN_LINE_COUNT 0x0401010A
    358 #define OID_WAN_PROTOCOL_CAPS 0x0401010B
    359 
    360 #define OID_WAN_GET_BRIDGE_INFO 0x0401020A
    361 #define OID_WAN_SET_BRIDGE_INFO 0x0401020B
    362 #define OID_WAN_GET_COMP_INFO 0x0401020C
    363 #define OID_WAN_SET_COMP_INFO 0x0401020D
    364 #define OID_WAN_GET_STATS_INFO 0x0401020E
    365 
    366 #define OID_WAN_CO_GET_INFO 0x04010180
    367 #define OID_WAN_CO_SET_LINK_INFO 0x04010181
    368 #define OID_WAN_CO_GET_LINK_INFO 0x04010182
    369 #define OID_WAN_CO_GET_COMP_INFO 0x04010280
    370 #define OID_WAN_CO_SET_COMP_INFO 0x04010281
    371 #define OID_WAN_CO_GET_STATS_INFO 0x04010282
    372 
    373 #define OID_LTALK_CURRENT_NODE_ID 0x05010102
    374 
    375 #define OID_LTALK_IN_BROADCASTS 0x05020101
    376 #define OID_LTALK_IN_LENGTH_ERRORS 0x05020102
    377 
    378 #define OID_LTALK_OUT_NO_HANDLERS 0x05020201
    379 #define OID_LTALK_COLLISIONS 0x05020202
    380 #define OID_LTALK_DEFERS 0x05020203
    381 #define OID_LTALK_NO_DATA_ERRORS 0x05020204
    382 #define OID_LTALK_RANDOM_CTS_ERRORS 0x05020205
    383 #define OID_LTALK_FCS_ERRORS 0x05020206
    384 
    385 #define OID_ARCNET_PERMANENT_ADDRESS 0x06010101
    386 #define OID_ARCNET_CURRENT_ADDRESS 0x06010102
    387 
    388 #define OID_ARCNET_RECONFIGURATIONS 0x06020201
    389 
    390 #define OID_TAPI_ACCEPT 0x07030101
    391 #define OID_TAPI_ANSWER 0x07030102
    392 #define OID_TAPI_CLOSE 0x07030103
    393 #define OID_TAPI_CLOSE_CALL 0x07030104
    394 #define OID_TAPI_CONDITIONAL_MEDIA_DETECTION 0x07030105
    395 #define OID_TAPI_CONFIG_DIALOG 0x07030106
    396 #define OID_TAPI_DEV_SPECIFIC 0x07030107
    397 #define OID_TAPI_DIAL 0x07030108
    398 #define OID_TAPI_DROP 0x07030109
    399 #define OID_TAPI_GET_ADDRESS_CAPS 0x0703010A
    400 #define OID_TAPI_GET_ADDRESS_ID 0x0703010B
    401 #define OID_TAPI_GET_ADDRESS_STATUS 0x0703010C
    402 #define OID_TAPI_GET_CALL_ADDRESS_ID 0x0703010D
    403 #define OID_TAPI_GET_CALL_INFO 0x0703010E
    404 #define OID_TAPI_GET_CALL_STATUS 0x0703010F
    405 #define OID_TAPI_GET_DEV_CAPS 0x07030110
    406 #define OID_TAPI_GET_DEV_CONFIG 0x07030111
    407 #define OID_TAPI_GET_EXTENSION_ID 0x07030112
    408 #define OID_TAPI_GET_ID 0x07030113
    409 #define OID_TAPI_GET_LINE_DEV_STATUS 0x07030114
    410 #define OID_TAPI_MAKE_CALL 0x07030115
    411 #define OID_TAPI_NEGOTIATE_EXT_VERSION 0x07030116
    412 #define OID_TAPI_OPEN 0x07030117
    413 #define OID_TAPI_PROVIDER_INITIALIZE 0x07030118
    414 #define OID_TAPI_PROVIDER_SHUTDOWN 0x07030119
    415 #define OID_TAPI_SECURE_CALL 0x0703011A
    416 #define OID_TAPI_SELECT_EXT_VERSION 0x0703011B
    417 #define OID_TAPI_SEND_USER_USER_INFO 0x0703011C
    418 #define OID_TAPI_SET_APP_SPECIFIC 0x0703011D
    419 #define OID_TAPI_SET_CALL_PARAMS 0x0703011E
    420 #define OID_TAPI_SET_DEFAULT_MEDIA_DETECTION 0x0703011F
    421 #define OID_TAPI_SET_DEV_CONFIG 0x07030120
    422 #define OID_TAPI_SET_MEDIA_MODE 0x07030121
    423 #define OID_TAPI_SET_STATUS_MESSAGES 0x07030122
    424 #define OID_TAPI_GATHER_DIGITS 0x07030123
    425 #define OID_TAPI_MONITOR_DIGITS 0x07030124
    426 
    427 #define OID_ATM_SUPPORTED_VC_RATES 0x08010101
    428 #define OID_ATM_SUPPORTED_SERVICE_CATEGORY 0x08010102
    429 #define OID_ATM_SUPPORTED_AAL_TYPES 0x08010103
    430 #define OID_ATM_HW_CURRENT_ADDRESS 0x08010104
    431 #define OID_ATM_MAX_ACTIVE_VCS 0x08010105
    432 #define OID_ATM_MAX_ACTIVE_VCI_BITS 0x08010106
    433 #define OID_ATM_MAX_ACTIVE_VPI_BITS 0x08010107
    434 #define OID_ATM_MAX_AAL0_PACKET_SIZE 0x08010108
    435 #define OID_ATM_MAX_AAL1_PACKET_SIZE 0x08010109
    436 #define OID_ATM_MAX_AAL34_PACKET_SIZE 0x0801010A
    437 #define OID_ATM_MAX_AAL5_PACKET_SIZE 0x0801010B
    438 
    439 #define OID_ATM_SIGNALING_VPIVCI 0x08010201
    440 #define OID_ATM_ASSIGNED_VPI 0x08010202
    441 #define OID_ATM_ACQUIRE_ACCESS_NET_RESOURCES 0x08010203
    442 #define OID_ATM_RELEASE_ACCESS_NET_RESOURCES 0x08010204
    443 #define OID_ATM_ILMI_VPIVCI 0x08010205
    444 #define OID_ATM_DIGITAL_BROADCAST_VPIVCI 0x08010206
    445 #define OID_ATM_GET_NEAREST_FLOW 0x08010207
    446 #define OID_ATM_ALIGNMENT_REQUIRED 0x08010208
    447 #define OID_ATM_LECS_ADDRESS 0x08010209
    448 #define OID_ATM_SERVICE_ADDRESS 0x0801020A
    449 
    450 #define OID_ATM_CALL_PROCEEDING 0x0801020B
    451 #define OID_ATM_CALL_ALERTING 0x0801020C
    452 #define OID_ATM_PARTY_ALERTING 0x0801020D
    453 #define OID_ATM_CALL_NOTIFY 0x0801020E
    454 
    455 #define OID_ATM_MY_IP_NM_ADDRESS 0x0801020F
    456 
    457 #define OID_ATM_RCV_CELLS_OK 0x08020101
    458 #define OID_ATM_XMIT_CELLS_OK 0x08020102
    459 #define OID_ATM_RCV_CELLS_DROPPED 0x08020103
    460 
    461 #define OID_ATM_RCV_INVALID_VPI_VCI 0x08020201
    462 #define OID_ATM_CELLS_HEC_ERROR 0x08020202
    463 #define OID_ATM_RCV_REASSEMBLY_ERROR 0x08020203
    464 
    465 #define OID_WW_GEN_NETWORK_TYPES_SUPPORTED 0x09010101
    466 #define OID_WW_GEN_NETWORK_TYPE_IN_USE 0x09010102
    467 #define OID_WW_GEN_HEADER_FORMATS_SUPPORTED 0x09010103
    468 #define OID_WW_GEN_HEADER_FORMAT_IN_USE 0x09010104
    469 #define OID_WW_GEN_INDICATION_REQUEST 0x09010105
    470 #define OID_WW_GEN_DEVICE_INFO 0x09010106
    471 #define OID_WW_GEN_OPERATION_MODE 0x09010107
    472 #define OID_WW_GEN_LOCK_STATUS 0x09010108
    473 #define OID_WW_GEN_DISABLE_TRANSMITTER 0x09010109
    474 #define OID_WW_GEN_NETWORK_ID 0x0901010A
    475 #define OID_WW_GEN_PERMANENT_ADDRESS 0x0901010B
    476 #define OID_WW_GEN_CURRENT_ADDRESS 0x0901010C
    477 #define OID_WW_GEN_SUSPEND_DRIVER 0x0901010D
    478 #define OID_WW_GEN_BASESTATION_ID 0x0901010E
    479 #define OID_WW_GEN_CHANNEL_ID 0x0901010F
    480 #define OID_WW_GEN_ENCRYPTION_SUPPORTED 0x09010110
    481 #define OID_WW_GEN_ENCRYPTION_IN_USE 0x09010111
    482 #define OID_WW_GEN_ENCRYPTION_STATE 0x09010112
    483 #define OID_WW_GEN_CHANNEL_QUALITY 0x09010113
    484 #define OID_WW_GEN_REGISTRATION_STATUS 0x09010114
    485 #define OID_WW_GEN_RADIO_LINK_SPEED 0x09010115
    486 #define OID_WW_GEN_LATENCY 0x09010116
    487 #define OID_WW_GEN_BATTERY_LEVEL 0x09010117
    488 #define OID_WW_GEN_EXTERNAL_POWER 0x09010118
    489 
    490 #define OID_WW_GEN_PING_ADDRESS 0x09010201
    491 #define OID_WW_GEN_RSSI 0x09010202
    492 #define OID_WW_GEN_SIM_STATUS 0x09010203
    493 #define OID_WW_GEN_ENABLE_SIM_PIN 0x09010204
    494 #define OID_WW_GEN_CHANGE_SIM_PIN 0x09010205
    495 #define OID_WW_GEN_SIM_PUK 0x09010206
    496 #define OID_WW_GEN_SIM_EXCEPTION 0x09010207
    497 
    498 #define OID_WW_MBX_SUBADDR 0x09050101
    499 
    500 #define OID_WW_MBX_FLEXLIST 0x09050103
    501 #define OID_WW_MBX_GROUPLIST 0x09050104
    502 #define OID_WW_MBX_TRAFFIC_AREA 0x09050105
    503 #define OID_WW_MBX_LIVE_DIE 0x09050106
    504 #define OID_WW_MBX_TEMP_DEFAULTLIST 0x09050107
    505 
    506 #define OID_WW_PIN_LOC_AUTHORIZE 0x09090101
    507 #define OID_WW_PIN_LAST_LOCATION 0x09090102
    508 #define OID_WW_PIN_LOC_FIX 0x09090103
    509 
    510 #define OID_WW_CDPD_SPNI 0x090D0101
    511 #define OID_WW_CDPD_WASI 0x090D0102
    512 #define OID_WW_CDPD_AREA_COLOR 0x090D0103
    513 #define OID_WW_CDPD_TX_POWER_LEVEL 0x090D0104
    514 #define OID_WW_CDPD_EID 0x090D0105
    515 #define OID_WW_CDPD_HEADER_COMPRESSION 0x090D0106
    516 #define OID_WW_CDPD_DATA_COMPRESSION 0x090D0107
    517 #define OID_WW_CDPD_CHANNEL_SELECT 0x090D0108
    518 #define OID_WW_CDPD_CHANNEL_STATE 0x090D0109
    519 #define OID_WW_CDPD_NEI 0x090D010A
    520 #define OID_WW_CDPD_NEI_STATE 0x090D010B
    521 #define OID_WW_CDPD_SERVICE_PROVIDER_IDENTIFIER 0x090D010C
    522 #define OID_WW_CDPD_SLEEP_MODE 0x090D010D
    523 
    524 #define OID_WW_CDPD_CIRCUIT_SWITCHED 0x090D010E
    525 
    526 #define OID_WW_CDPD_TEI 0x090D010F
    527 #define OID_WW_CDPD_RSSI 0x090D0110
    528 
    529 #define OID_WW_CDPD_CS_SERVICE_PREFERENCE 0x090D0111
    530 #define OID_WW_CDPD_CS_SERVICE_STATUS 0x090D0112
    531 #define OID_WW_CDPD_CS_INFO 0x090D0113
    532 #define OID_WW_CDPD_CS_SUSPEND 0x090D0114
    533 #define OID_WW_CDPD_CS_DEFAULT_DIAL_CODE 0x090D0115
    534 #define OID_WW_CDPD_CS_CALLBACK 0x090D0116
    535 #define OID_WW_CDPD_CS_SID_LIST 0x090D0117
    536 #define OID_WW_CDPD_CS_CONFIGURATION 0x090D0118
    537 
    538 #define OID_WW_ARD_SNDCP 0x09110101
    539 #define OID_WW_ARD_TMLY_MSG 0x09110102
    540 #define OID_WW_ARD_DATAGRAM 0x09110103
    541 
    542 #define OID_WW_TAC_COMPRESSION 0x09150101
    543 
    544 #define OID_WW_TAC_SET_CONFIG 0x09150102
    545 #define OID_WW_TAC_GET_STATUS 0x09150103
    546 #define OID_WW_TAC_USER_HEADER 0x09150104
    547 
    548 #define OID_WW_TAC_UNIQUE_SDU_TAG 0x09150105
    549 #define OID_WW_TAC_SEND_COMMAND 0x09150106
    550 #define OID_WW_TAC_GET_RESPONSE 0x09150107
    551 #define OID_WW_TAC_DISABLE_RECEIVER 0x09150108
    552 #define OID_WW_TAC_ANTENNA_MODE 0x09150109
    553 #define OID_WW_TAC_FLUSH_DATA 0x0915010A
    554 #define OID_WW_TAC_SHUTDOWN_DEVICE 0x0915010B
    555 #define OID_WW_TAC_DEVICE_EXCEPTION 0x0915010C
    556 #define OID_WW_TAC_RECEIVE_EXCEPTION 0x0915010D
    557 #define OID_WW_TAC_BUFFER_EXCEPTION 0x0915010E
    558 #define OID_WW_TAC_BATTERY_EXCEPTION 0x0915010F
    559 #define OID_WW_TAC_TRANSMITTER_KEYED 0x09150110
    560 #define OID_WW_TAC_SYSTEM_TABLE 0x09150111
    561 #define OID_WW_TAC_CHANNEL_TABLE 0x09150112
    562 #define OID_WW_TAC_DCHANNEL_TABLE 0x09150113
    563 #define OID_WW_TAC_RECEIVE_QUEUE_COUNT 0x09150114
    564 
    565 #define OID_WW_TAC_STATISTICS 0x09160101
    566 
    567 #define OID_WW_MET_FUNCTION 0x09190101
    568 
    569 #define OID_802_11_BSSID 0x0D010101
    570 #define OID_802_11_SSID 0x0D010102
    571 #define OID_802_11_NETWORK_TYPES_SUPPORTED 0x0D010203
    572 #define OID_802_11_NETWORK_TYPE_IN_USE 0x0D010204
    573 #define OID_802_11_TX_POWER_LEVEL 0x0D010205
    574 #define OID_802_11_RSSI 0x0D010206
    575 #define OID_802_11_RSSI_TRIGGER 0x0D010207
    576 #define OID_802_11_INFRASTRUCTURE_MODE 0x0D010108
    577 #define OID_802_11_FRAGMENTATION_THRESHOLD 0x0D010209
    578 #define OID_802_11_RTS_THRESHOLD 0x0D01020A
    579 #define OID_802_11_NUMBER_OF_ANTENNAS 0x0D01020B
    580 #define OID_802_11_RX_ANTENNA_SELECTED 0x0D01020C
    581 #define OID_802_11_TX_ANTENNA_SELECTED 0x0D01020D
    582 #define OID_802_11_SUPPORTED_RATES 0x0D01020E
    583 #define OID_802_11_DESIRED_RATES 0x0D010210
    584 #define OID_802_11_CONFIGURATION 0x0D010211
    585 #define OID_802_11_STATISTICS 0x0D020212
    586 #define OID_802_11_ADD_WEP 0x0D010113
    587 #define OID_802_11_REMOVE_WEP 0x0D010114
    588 #define OID_802_11_DISASSOCIATE 0x0D010115
    589 #define OID_802_11_POWER_MODE 0x0D010216
    590 #define OID_802_11_BSSID_LIST 0x0D010217
    591 #define OID_802_11_AUTHENTICATION_MODE 0x0D010118
    592 #define OID_802_11_PRIVACY_FILTER 0x0D010119
    593 #define OID_802_11_BSSID_LIST_SCAN 0x0D01011A
    594 #define OID_802_11_WEP_STATUS 0x0D01011B
    595 
    596 #define OID_802_11_ENCRYPTION_STATUS OID_802_11_WEP_STATUS
    597 #define OID_802_11_RELOAD_DEFAULTS 0x0D01011C
    598 
    599 #define OID_802_11_ADD_KEY 0x0D01011D
    600 #define OID_802_11_REMOVE_KEY 0x0D01011E
    601 #define OID_802_11_ASSOCIATION_INFORMATION 0x0D01011F
    602 #define OID_802_11_TEST 0x0D010120
    603 #define OID_802_11_MEDIA_STREAM_MODE 0x0D010121
    604 
    605 #define NDIS_802_11_LENGTH_SSID 32
    606 #define NDIS_802_11_LENGTH_RATES 8
    607 #define NDIS_802_11_LENGTH_RATES_EX 16
    608 
    609   typedef enum _NDIS_802_11_STATUS_TYPE {
    610     Ndis802_11StatusType_Authentication,
    611     Ndis802_11StatusType_MediaStreamMode,
    612     Ndis802_11StatusTypeMax
    613   } NDIS_802_11_STATUS_TYPE,*PNDIS_802_11_STATUS_TYPE;
    614 
    615   typedef UCHAR NDIS_802_11_MAC_ADDRESS[6];
    616 
    617   typedef struct _NDIS_802_11_STATUS_INDICATION {
    618     NDIS_802_11_STATUS_TYPE StatusType;
    619   } NDIS_802_11_STATUS_INDICATION,*PNDIS_802_11_STATUS_INDICATION;
    620 
    621 #define NDIS_802_11_AUTH_REQUEST_AUTH_FIELDS 0x0f
    622 #define NDIS_802_11_AUTH_REQUEST_REAUTH 0x01
    623 #define NDIS_802_11_AUTH_REQUEST_KEYUPDATE 0x02
    624 #define NDIS_802_11_AUTH_REQUEST_PAIRWISE_ERROR 0x06
    625 #define NDIS_802_11_AUTH_REQUEST_GROUP_ERROR 0x0E
    626 
    627   typedef struct _NDIS_802_11_AUTHENTICATION_REQUEST {
    628     ULONG Length;
    629     NDIS_802_11_MAC_ADDRESS Bssid;
    630     ULONG Flags;
    631   } NDIS_802_11_AUTHENTICATION_REQUEST,*PNDIS_802_11_AUTHENTICATION_REQUEST;
    632 
    633   typedef enum _NDIS_802_11_NETWORK_TYPE {
    634     Ndis802_11FH,
    635     Ndis802_11DS,
    636     Ndis802_11OFDM5,
    637     Ndis802_11OFDM24,
    638     Ndis802_11Automode,
    639     Ndis802_11NetworkTypeMax
    640   } NDIS_802_11_NETWORK_TYPE,*PNDIS_802_11_NETWORK_TYPE;
    641 
    642   typedef struct _NDIS_802_11_NETWORK_TYPE_LIST {
    643     ULONG NumberOfItems;
    644     NDIS_802_11_NETWORK_TYPE NetworkType [1];
    645   } NDIS_802_11_NETWORK_TYPE_LIST,*PNDIS_802_11_NETWORK_TYPE_LIST;
    646 
    647   typedef enum _NDIS_802_11_POWER_MODE {
    648     Ndis802_11PowerModeCAM,
    649     Ndis802_11PowerModeMAX_PSP,
    650     Ndis802_11PowerModeFast_PSP,
    651     Ndis802_11PowerModeMax
    652   } NDIS_802_11_POWER_MODE,*PNDIS_802_11_POWER_MODE;
    653 
    654   typedef ULONG NDIS_802_11_TX_POWER_LEVEL;
    655   typedef LONG NDIS_802_11_RSSI;
    656 
    657   typedef struct _NDIS_802_11_CONFIGURATION_FH {
    658     ULONG Length;
    659     ULONG HopPattern;
    660     ULONG HopSet;
    661     ULONG DwellTime;
    662   } NDIS_802_11_CONFIGURATION_FH,*PNDIS_802_11_CONFIGURATION_FH;
    663 
    664   typedef struct _NDIS_802_11_CONFIGURATION {
    665     ULONG Length;
    666     ULONG BeaconPeriod;
    667     ULONG ATIMWindow;
    668     ULONG DSConfig;
    669     NDIS_802_11_CONFIGURATION_FH FHConfig;
    670   } NDIS_802_11_CONFIGURATION,*PNDIS_802_11_CONFIGURATION;
    671 
    672   typedef struct _NDIS_802_11_STATISTICS {
    673     ULONG Length;
    674     LARGE_INTEGER TransmittedFragmentCount;
    675     LARGE_INTEGER MulticastTransmittedFrameCount;
    676     LARGE_INTEGER FailedCount;
    677     LARGE_INTEGER RetryCount;
    678     LARGE_INTEGER MultipleRetryCount;
    679     LARGE_INTEGER RTSSuccessCount;
    680     LARGE_INTEGER RTSFailureCount;
    681     LARGE_INTEGER ACKFailureCount;
    682     LARGE_INTEGER FrameDuplicateCount;
    683     LARGE_INTEGER ReceivedFragmentCount;
    684     LARGE_INTEGER MulticastReceivedFrameCount;
    685     LARGE_INTEGER FCSErrorCount;
    686   } NDIS_802_11_STATISTICS,*PNDIS_802_11_STATISTICS;
    687 
    688   typedef ULONG NDIS_802_11_KEY_INDEX;
    689   typedef ULONGLONG NDIS_802_11_KEY_RSC;
    690 
    691   typedef struct _NDIS_802_11_KEY {
    692     ULONG Length;
    693     ULONG KeyIndex;
    694     ULONG KeyLength;
    695     NDIS_802_11_MAC_ADDRESS BSSID;
    696     NDIS_802_11_KEY_RSC KeyRSC;
    697     UCHAR KeyMaterial[1];
    698   } NDIS_802_11_KEY,*PNDIS_802_11_KEY;
    699 
    700   typedef struct _NDIS_802_11_REMOVE_KEY {
    701     ULONG Length;
    702     ULONG KeyIndex;
    703     NDIS_802_11_MAC_ADDRESS BSSID;
    704   } NDIS_802_11_REMOVE_KEY,*PNDIS_802_11_REMOVE_KEY;
    705 
    706   typedef struct _NDIS_802_11_WEP {
    707     ULONG Length;
    708     ULONG KeyIndex;
    709     ULONG KeyLength;
    710     UCHAR KeyMaterial[1];
    711   } NDIS_802_11_WEP,*PNDIS_802_11_WEP;
    712 
    713   typedef enum _NDIS_802_11_NETWORK_INFRASTRUCTURE {
    714     Ndis802_11IBSS,
    715     Ndis802_11Infrastructure,
    716     Ndis802_11AutoUnknown,
    717     Ndis802_11InfrastructureMax
    718   } NDIS_802_11_NETWORK_INFRASTRUCTURE,*PNDIS_802_11_NETWORK_INFRASTRUCTURE;
    719 
    720   typedef enum _NDIS_802_11_AUTHENTICATION_MODE {
    721     Ndis802_11AuthModeOpen,
    722     Ndis802_11AuthModeShared,
    723     Ndis802_11AuthModeAutoSwitch,
    724     Ndis802_11AuthModeWPA,
    725     Ndis802_11AuthModeWPAPSK,
    726     Ndis802_11AuthModeWPANone,
    727     Ndis802_11AuthModeMax
    728   } NDIS_802_11_AUTHENTICATION_MODE,*PNDIS_802_11_AUTHENTICATION_MODE;
    729 
    730   typedef UCHAR NDIS_802_11_RATES[NDIS_802_11_LENGTH_RATES];
    731   typedef UCHAR NDIS_802_11_RATES_EX[NDIS_802_11_LENGTH_RATES_EX];
    732 
    733   typedef struct _NDIS_802_11_SSID {
    734     ULONG SsidLength;
    735     UCHAR Ssid[NDIS_802_11_LENGTH_SSID];
    736   } NDIS_802_11_SSID,*PNDIS_802_11_SSID;
    737 
    738   typedef struct _NDIS_WLAN_BSSID {
    739     ULONG Length;
    740     NDIS_802_11_MAC_ADDRESS MacAddress;
    741     UCHAR Reserved[2];
    742     NDIS_802_11_SSID Ssid;
    743     ULONG Privacy;
    744     NDIS_802_11_RSSI Rssi;
    745     NDIS_802_11_NETWORK_TYPE NetworkTypeInUse;
    746     NDIS_802_11_CONFIGURATION Configuration;
    747     NDIS_802_11_NETWORK_INFRASTRUCTURE InfrastructureMode;
    748     NDIS_802_11_RATES SupportedRates;
    749   } NDIS_WLAN_BSSID,*PNDIS_WLAN_BSSID;
    750 
    751   typedef struct _NDIS_802_11_BSSID_LIST {
    752     ULONG NumberOfItems;
    753     NDIS_WLAN_BSSID Bssid[1];
    754   } NDIS_802_11_BSSID_LIST,*PNDIS_802_11_BSSID_LIST;
    755 
    756   typedef struct _NDIS_WLAN_BSSID_EX {
    757     ULONG Length;
    758     NDIS_802_11_MAC_ADDRESS MacAddress;
    759     UCHAR Reserved[2];
    760     NDIS_802_11_SSID Ssid;
    761     ULONG Privacy;
    762     NDIS_802_11_RSSI Rssi;
    763     NDIS_802_11_NETWORK_TYPE NetworkTypeInUse;
    764     NDIS_802_11_CONFIGURATION Configuration;
    765     NDIS_802_11_NETWORK_INFRASTRUCTURE InfrastructureMode;
    766     NDIS_802_11_RATES_EX SupportedRates;
    767     ULONG IELength;
    768     UCHAR IEs[1];
    769   } NDIS_WLAN_BSSID_EX,*PNDIS_WLAN_BSSID_EX;
    770 
    771   typedef struct _NDIS_802_11_BSSID_LIST_EX {
    772     ULONG NumberOfItems;
    773     NDIS_WLAN_BSSID_EX Bssid[1];
    774   } NDIS_802_11_BSSID_LIST_EX,*PNDIS_802_11_BSSID_LIST_EX;
    775 
    776   typedef struct _NDIS_802_11_FIXED_IEs {
    777     UCHAR Timestamp[8];
    778     USHORT BeaconInterval;
    779     USHORT Capabilities;
    780   } NDIS_802_11_FIXED_IEs,*PNDIS_802_11_FIXED_IEs;
    781 
    782   typedef struct _NDIS_802_11_VARIABLE_IEs {
    783     UCHAR ElementID;
    784     UCHAR Length;
    785     UCHAR data[1];
    786   } NDIS_802_11_VARIABLE_IEs,*PNDIS_802_11_VARIABLE_IEs;
    787 
    788   typedef ULONG NDIS_802_11_FRAGMENTATION_THRESHOLD;
    789   typedef ULONG NDIS_802_11_RTS_THRESHOLD;
    790   typedef ULONG NDIS_802_11_ANTENNA;
    791 
    792   typedef enum _NDIS_802_11_PRIVACY_FILTER {
    793     Ndis802_11PrivFilterAcceptAll,
    794     Ndis802_11PrivFilter8021xWEP
    795   } NDIS_802_11_PRIVACY_FILTER,*PNDIS_802_11_PRIVACY_FILTER;
    796 
    797   typedef enum _NDIS_802_11_WEP_STATUS {
    798     Ndis802_11WEPEnabled,
    799     Ndis802_11Encryption1Enabled	= Ndis802_11WEPEnabled,
    800     Ndis802_11WEPDisabled,
    801     Ndis802_11EncryptionDisabled	= Ndis802_11WEPDisabled,
    802     Ndis802_11WEPKeyAbsent,
    803     Ndis802_11Encryption1KeyAbsent	= Ndis802_11WEPKeyAbsent,
    804     Ndis802_11WEPNotSupported,
    805     Ndis802_11EncryptionNotSupported	= Ndis802_11WEPNotSupported,
    806     Ndis802_11Encryption2Enabled,
    807     Ndis802_11Encryption2KeyAbsent,
    808     Ndis802_11Encryption3Enabled,
    809     Ndis802_11Encryption3KeyAbsent
    810   } NDIS_802_11_WEP_STATUS,*PNDIS_802_11_WEP_STATUS,NDIS_802_11_ENCRYPTION_STATUS,*PNDIS_802_11_ENCRYPTION_STATUS;
    811 
    812   typedef enum _NDIS_802_11_RELOAD_DEFAULTS {
    813     Ndis802_11ReloadWEPKeys
    814   } NDIS_802_11_RELOAD_DEFAULTS,*PNDIS_802_11_RELOAD_DEFAULTS;
    815 
    816 #define NDIS_802_11_AI_REQFI_CAPABILITIES 1
    817 #define NDIS_802_11_AI_REQFI_LISTENINTERVAL 2
    818 #define NDIS_802_11_AI_REQFI_CURRENTAPADDRESS 4
    819 
    820 #define NDIS_802_11_AI_RESFI_CAPABILITIES 1
    821 #define NDIS_802_11_AI_RESFI_STATUSCODE 2
    822 #define NDIS_802_11_AI_RESFI_ASSOCIATIONID 4
    823 
    824   typedef struct _NDIS_802_11_AI_REQFI {
    825     USHORT Capabilities;
    826     USHORT ListenInterval;
    827     NDIS_802_11_MAC_ADDRESS CurrentAPAddress;
    828   } NDIS_802_11_AI_REQFI,*PNDIS_802_11_AI_REQFI;
    829 
    830   typedef struct _NDIS_802_11_AI_RESFI {
    831     USHORT Capabilities;
    832     USHORT StatusCode;
    833     USHORT AssociationId;
    834   } NDIS_802_11_AI_RESFI,*PNDIS_802_11_AI_RESFI;
    835 
    836   typedef struct _NDIS_802_11_ASSOCIATION_INFORMATION {
    837     ULONG Length;
    838     USHORT AvailableRequestFixedIEs;
    839     NDIS_802_11_AI_REQFI RequestFixedIEs;
    840     ULONG RequestIELength;
    841     ULONG OffsetRequestIEs;
    842     USHORT AvailableResponseFixedIEs;
    843     NDIS_802_11_AI_RESFI ResponseFixedIEs;
    844     ULONG ResponseIELength;
    845     ULONG OffsetResponseIEs;
    846   } NDIS_802_11_ASSOCIATION_INFORMATION,*PNDIS_802_11_ASSOCIATION_INFORMATION;
    847 
    848   typedef struct _NDIS_802_11_AUTHENTICATION_EVENT {
    849     NDIS_802_11_STATUS_INDICATION Status;
    850     NDIS_802_11_AUTHENTICATION_REQUEST Request[1];
    851   } NDIS_802_11_AUTHENTICATION_EVENT,*PNDIS_802_11_AUTHENTICATION_EVENT;
    852 
    853   typedef struct _NDIS_802_11_TEST {
    854     ULONG Length;
    855     ULONG Type;
    856     __C89_NAMELESS union {
    857       NDIS_802_11_AUTHENTICATION_EVENT AuthenticationEvent;
    858       NDIS_802_11_RSSI RssiTrigger;
    859     };
    860   } NDIS_802_11_TEST,*PNDIS_802_11_TEST;
    861 
    862   typedef enum _NDIS_802_11_MEDIA_STREAM_MODE {
    863     Ndis802_11MediaStreamOff,
    864     Ndis802_11MediaStreamOn
    865   } NDIS_802_11_MEDIA_STREAM_MODE,*PNDIS_802_11_MEDIA_STREAM_MODE;
    866 
    867 #define OID_IRDA_RECEIVING 0x0A010100
    868 #define OID_IRDA_TURNAROUND_TIME 0x0A010101
    869 #define OID_IRDA_SUPPORTED_SPEEDS 0x0A010102
    870 #define OID_IRDA_LINK_SPEED 0x0A010103
    871 #define OID_IRDA_MEDIA_BUSY 0x0A010104
    872 
    873 #define OID_IRDA_EXTRA_RCV_BOFS 0x0A010200
    874 #define OID_IRDA_RATE_SNIFF 0x0A010201
    875 #define OID_IRDA_UNICAST_LIST 0x0A010202
    876 #define OID_IRDA_MAX_UNICAST_LIST_SIZE 0x0A010203
    877 #define OID_IRDA_MAX_RECEIVE_WINDOW_SIZE 0x0A010204
    878 #define OID_IRDA_MAX_SEND_WINDOW_SIZE 0x0A010205
    879 #define OID_IRDA_RESERVED1 0x0A01020A
    880 #define OID_IRDA_RESERVED2 0x0A01020F
    881 
    882 #define OID_BPC_ADAPTER_CAPS 0x0B010100
    883 #define OID_BPC_DEVICES 0x0B010101
    884 #define OID_BPC_DEVICE_CAPS 0x0B010102
    885 #define OID_BPC_DEVICE_SETTINGS 0x0B010103
    886 #define OID_BPC_CONNECTION_STATUS 0x0B010104
    887 #define OID_BPC_ADDRESS_COMPARE 0x0B010105
    888 #define OID_BPC_PROGRAM_GUIDE 0x0B010106
    889 #define OID_BPC_LAST_ERROR 0x0B020107
    890 #define OID_BPC_POOL 0x0B010108
    891 
    892 #define OID_BPC_PROVIDER_SPECIFIC 0x0B020109
    893 #define OID_BPC_ADAPTER_SPECIFIC 0x0B02010A
    894 
    895 #define OID_BPC_CONNECT 0x0B01010B
    896 #define OID_BPC_COMMIT 0x0B01010C
    897 #define OID_BPC_DISCONNECT 0x0B01010D
    898 #define OID_BPC_CONNECTION_ENABLE 0x0B01010E
    899 #define OID_BPC_POOL_RESERVE 0x0B01010F
    900 #define OID_BPC_POOL_RETURN 0x0B010110
    901 #define OID_BPC_FORCE_RECEIVE 0x0B010111
    902 
    903 #define OID_BPC_LAST 0x0B020112
    904 
    905 #define OID_1394_LOCAL_NODE_INFO 0x0C010101
    906 #define OID_1394_VC_INFO 0x0C010102
    907 
    908 #define OID_CO_ADD_PVC 0xFE000001
    909 #define OID_CO_DELETE_PVC 0xFE000002
    910 #define OID_CO_GET_CALL_INFORMATION 0xFE000003
    911 #define OID_CO_ADD_ADDRESS 0xFE000004
    912 #define OID_CO_DELETE_ADDRESS 0xFE000005
    913 #define OID_CO_GET_ADDRESSES 0xFE000006
    914 #define OID_CO_ADDRESS_CHANGE 0xFE000007
    915 #define OID_CO_SIGNALING_ENABLED 0xFE000008
    916 #define OID_CO_SIGNALING_DISABLED 0xFE000009
    917 #define OID_CO_AF_CLOSE 0xFE00000A
    918 
    919 #define OID_CO_TAPI_CM_CAPS 0xFE001001
    920 #define OID_CO_TAPI_LINE_CAPS 0xFE001002
    921 #define OID_CO_TAPI_ADDRESS_CAPS 0xFE001003
    922 #define OID_CO_TAPI_TRANSLATE_TAPI_CALLPARAMS 0xFE001004
    923 #define OID_CO_TAPI_TRANSLATE_NDIS_CALLPARAMS 0xFE001005
    924 #define OID_CO_TAPI_TRANSLATE_TAPI_SAP 0xFE001006
    925 #define OID_CO_TAPI_GET_CALL_DIAGNOSTICS 0xFE001007
    926 #define OID_CO_TAPI_REPORT_DIGITS 0xFE001008
    927 #define OID_CO_TAPI_DONT_REPORT_DIGITS 0xFE001009
    928 
    929 #define OID_PNP_CAPABILITIES 0xFD010100
    930 #define OID_PNP_SET_POWER 0xFD010101
    931 #define OID_PNP_QUERY_POWER 0xFD010102
    932 #define OID_PNP_ADD_WAKE_UP_PATTERN 0xFD010103
    933 #define OID_PNP_REMOVE_WAKE_UP_PATTERN 0xFD010104
    934 #define OID_PNP_WAKE_UP_PATTERN_LIST 0xFD010105
    935 #define OID_PNP_ENABLE_WAKE_UP 0xFD010106
    936 
    937 #define OID_PNP_WAKE_UP_OK 0xFD020200
    938 #define OID_PNP_WAKE_UP_ERROR 0xFD020201
    939 
    940 #define NDIS_PNP_WAKE_UP_MAGIC_PACKET 0x00000001
    941 #define NDIS_PNP_WAKE_UP_PATTERN_MATCH 0x00000002
    942 #define NDIS_PNP_WAKE_UP_LINK_CHANGE 0x00000004
    943 
    944 #define OID_TCP_TASK_OFFLOAD 0xFC010201
    945 #define OID_TCP_TASK_IPSEC_ADD_SA 0xFC010202
    946 #define OID_TCP_TASK_IPSEC_DELETE_SA 0xFC010203
    947 #define OID_TCP_SAN_SUPPORT 0xFC010204
    948 #define OID_TCP_TASK_IPSEC_ADD_UDPESP_SA 0xFC010205
    949 #define OID_TCP_TASK_IPSEC_DELETE_UDPESP_SA 0xFC010206
    950 
    951 #define OID_FFP_SUPPORT 0xFC010210
    952 #define OID_FFP_FLUSH 0xFC010211
    953 #define OID_FFP_CONTROL 0xFC010212
    954 #define OID_FFP_PARAMS 0xFC010213
    955 #define OID_FFP_DATA 0xFC010214
    956 
    957 #define OID_FFP_DRIVER_STATS 0xFC020210
    958 #define OID_FFP_ADAPTER_STATS 0xFC020211
    959 
    960 #define OID_QOS_TC_SUPPORTED 0xFB010100
    961 #define OID_QOS_REMAINING_BANDWIDTH 0xFB010101
    962 #define OID_QOS_ISSLOW_FLOW 0xFB010102
    963 #define OID_QOS_BESTEFFORT_BANDWIDTH 0xFB010103
    964 #define OID_QOS_LATENCY 0xFB010104
    965 #define OID_QOS_FLOW_IP_CONFORMING 0xFB010105
    966 #define OID_QOS_FLOW_COUNT 0xFB010106
    967 #define OID_QOS_NON_BESTEFFORT_LIMIT 0xFB010107
    968 #define OID_QOS_SCHEDULING_PROFILES_SUPPORTED 0xFB010108
    969 #define OID_QOS_CURRENT_SCHEDULING_PROFILE 0xFB010109
    970 #define OID_QOS_TIMER_RESOLUTION 0xFB01010A
    971 #define OID_QOS_STATISTICS_BUFFER 0xFB01010B
    972 #define OID_QOS_HIERARCHY_CLASS 0xFB01010C
    973 #define OID_QOS_FLOW_MODE 0xFB01010D
    974 #define OID_QOS_ISSLOW_FRAGMENT_SIZE 0xFB01010E
    975 #define OID_QOS_FLOW_IP_NONCONFORMING 0xFB01010F
    976 #define OID_QOS_FLOW_8021P_CONFORMING 0xFB010110
    977 #define OID_QOS_FLOW_8021P_NONCONFORMING 0xFB010111
    978 #define OID_QOS_ENABLE_AVG_STATS 0xFB010112
    979 #define OID_QOS_ENABLE_WINDOW_ADJUSTMENT 0xFB010113
    980 
    981   typedef struct NDIS_CO_DEVICE_PROFILE {
    982     NDIS_VAR_DATA_DESC DeviceDescription;
    983     NDIS_VAR_DATA_DESC DevSpecificInfo;
    984     ULONG ulTAPISupplementaryPassThru;
    985     ULONG ulAddressModes;
    986     ULONG ulNumAddresses;
    987     ULONG ulBearerModes;
    988     ULONG ulMaxTxRate;
    989     ULONG ulMinTxRate;
    990     ULONG ulMaxRxRate;
    991     ULONG ulMinRxRate;
    992     ULONG ulMediaModes;
    993     ULONG ulGenerateToneModes;
    994     ULONG ulGenerateToneMaxNumFreq;
    995     ULONG ulGenerateDigitModes;
    996     ULONG ulMonitorToneMaxNumFreq;
    997     ULONG ulMonitorToneMaxNumEntries;
    998     ULONG ulMonitorDigitModes;
    999     ULONG ulGatherDigitsMinTimeout;
   1000     ULONG ulGatherDigitsMaxTimeout;
   1001     ULONG ulDevCapFlags;
   1002     ULONG ulMaxNumActiveCalls;
   1003     ULONG ulAnswerMode;
   1004     ULONG ulUUIAcceptSize;
   1005     ULONG ulUUIAnswerSize;
   1006     ULONG ulUUIMakeCallSize;
   1007     ULONG ulUUIDropSize;
   1008     ULONG ulUUISendUserUserInfoSize;
   1009     ULONG ulUUICallInfoSize;
   1010   } NDIS_CO_DEVICE_PROFILE,*PNDIS_CO_DEVICE_PROFILE;
   1011 
   1012   typedef ULONG IPAddr,IPMask;
   1013   typedef ULONG SPI_TYPE;
   1014 
   1015   typedef enum _OFFLOAD_OPERATION_E {
   1016     AUTHENTICATE = 1,
   1017     ENCRYPT
   1018   } OFFLOAD_OPERATION_E;
   1019 
   1020   typedef struct _OFFLOAD_ALGO_INFO {
   1021     ULONG algoIdentifier;
   1022     ULONG algoKeylen;
   1023     ULONG algoRounds;
   1024   } OFFLOAD_ALGO_INFO,*POFFLOAD_ALGO_INFO;
   1025 
   1026   typedef enum _OFFLOAD_CONF_ALGO {
   1027     OFFLOAD_IPSEC_CONF_NONE,
   1028     OFFLOAD_IPSEC_CONF_DES,
   1029     OFFLOAD_IPSEC_CONF_RESERVED,
   1030     OFFLOAD_IPSEC_CONF_3_DES,
   1031     OFFLOAD_IPSEC_CONF_MAX
   1032   } OFFLOAD_CONF_ALGO;
   1033 
   1034   typedef enum _OFFLOAD_INTEGRITY_ALGO {
   1035     OFFLOAD_IPSEC_INTEGRITY_NONE,
   1036     OFFLOAD_IPSEC_INTEGRITY_MD5,
   1037     OFFLOAD_IPSEC_INTEGRITY_SHA,
   1038     OFFLOAD_IPSEC_INTEGRITY_MAX
   1039   } OFFLOAD_INTEGRITY_ALGO;
   1040 
   1041   typedef struct _OFFLOAD_SECURITY_ASSOCIATION {
   1042     OFFLOAD_OPERATION_E Operation;
   1043     SPI_TYPE SPI;
   1044     OFFLOAD_ALGO_INFO IntegrityAlgo;
   1045     OFFLOAD_ALGO_INFO ConfAlgo;
   1046     OFFLOAD_ALGO_INFO Reserved;
   1047   } OFFLOAD_SECURITY_ASSOCIATION,*POFFLOAD_SECURITY_ASSOCIATION;
   1048 
   1049 #define OFFLOAD_MAX_SAS 3
   1050 
   1051 #define OFFLOAD_INBOUND_SA 0x0001
   1052 #define OFFLOAD_OUTBOUND_SA 0x0002
   1053 
   1054   typedef struct _OFFLOAD_IPSEC_ADD_SA {
   1055     IPAddr SrcAddr;
   1056     IPMask SrcMask;
   1057     IPAddr DestAddr;
   1058     IPMask DestMask;
   1059     ULONG Protocol;
   1060     USHORT SrcPort;
   1061     USHORT DestPort;
   1062     IPAddr SrcTunnelAddr;
   1063     IPAddr DestTunnelAddr;
   1064     USHORT Flags;
   1065     SHORT NumSAs;
   1066     OFFLOAD_SECURITY_ASSOCIATION SecAssoc[OFFLOAD_MAX_SAS];
   1067     HANDLE OffloadHandle;
   1068     ULONG KeyLen;
   1069     UCHAR KeyMat[1];
   1070   } OFFLOAD_IPSEC_ADD_SA,*POFFLOAD_IPSEC_ADD_SA;
   1071 
   1072   typedef struct _OFFLOAD_IPSEC_DELETE_SA {
   1073     HANDLE OffloadHandle;
   1074   } OFFLOAD_IPSEC_DELETE_SA,*POFFLOAD_IPSEC_DELETE_SA;
   1075 
   1076   typedef enum _UDP_ENCAP_TYPE {
   1077     OFFLOAD_IPSEC_UDPESP_ENCAPTYPE_IKE,
   1078     OFFLOAD_IPSEC_UDPESP_ENCAPTYPE_OTHER
   1079   } UDP_ENCAP_TYPE,*PUDP_ENCAP_TYPE;
   1080 
   1081   typedef struct _OFFLOAD_IPSEC_UDPESP_ENCAPTYPE_ENTRY {
   1082     UDP_ENCAP_TYPE UdpEncapType;
   1083     USHORT DstEncapPort;
   1084   } OFFLOAD_IPSEC_UDPESP_ENCAPTYPE_ENTRY,*POFFLOAD_IPSEC_UDPESP_ENCAPTYPE_ENTRY;
   1085 
   1086   typedef struct _OFFLOAD_IPSEC_ADD_UDPESP_SA {
   1087     IPAddr SrcAddr;
   1088     IPMask SrcMask;
   1089     IPAddr DstAddr;
   1090     IPMask DstMask;
   1091     ULONG Protocol;
   1092     USHORT SrcPort;
   1093     USHORT DstPort;
   1094     IPAddr SrcTunnelAddr;
   1095     IPAddr DstTunnelAddr;
   1096     USHORT Flags;
   1097     SHORT NumSAs;
   1098     OFFLOAD_SECURITY_ASSOCIATION SecAssoc[OFFLOAD_MAX_SAS];
   1099     HANDLE OffloadHandle;
   1100     OFFLOAD_IPSEC_UDPESP_ENCAPTYPE_ENTRY EncapTypeEntry;
   1101     HANDLE EncapTypeEntryOffldHandle;
   1102     ULONG KeyLen;
   1103     UCHAR KeyMat[1];
   1104   } OFFLOAD_IPSEC_ADD_UDPESP_SA,*POFFLOAD_IPSEC_ADD_UDPESP_SA;
   1105 
   1106   typedef struct _OFFLOAD_IPSEC_DELETE_UDPESP_SA {
   1107     HANDLE OffloadHandle;
   1108     HANDLE EncapTypeEntryOffldHandle;
   1109   } OFFLOAD_IPSEC_DELETE_UDPESP_SA,*POFFLOAD_IPSEC_DELETE_UDPESP_SA;
   1110 
   1111   typedef ULONG NDIS_VLAN_ID;
   1112 
   1113   typedef enum _NDIS_MEDIUM {
   1114     NdisMedium802_3,
   1115     NdisMedium802_5,
   1116     NdisMediumFddi,
   1117     NdisMediumWan,
   1118     NdisMediumLocalTalk,
   1119     NdisMediumDix,
   1120     NdisMediumArcnetRaw,
   1121     NdisMediumArcnet878_2,
   1122     NdisMediumAtm,
   1123     NdisMediumWirelessWan,
   1124     NdisMediumIrda,
   1125     NdisMediumBpc,
   1126     NdisMediumCoWan,
   1127     NdisMedium1394,
   1128     NdisMediumInfiniBand,
   1129     NdisMediumMax
   1130   } NDIS_MEDIUM,*PNDIS_MEDIUM;
   1131 
   1132   typedef enum _NDIS_PHYSICAL_MEDIUM {
   1133     NdisPhysicalMediumUnspecified,
   1134     NdisPhysicalMediumWirelessLan,
   1135     NdisPhysicalMediumCableModem,
   1136     NdisPhysicalMediumPhoneLine,
   1137     NdisPhysicalMediumPowerLine,
   1138     NdisPhysicalMediumDSL,
   1139     NdisPhysicalMediumFibreChannel,
   1140     NdisPhysicalMedium1394,
   1141     NdisPhysicalMediumWirelessWan,
   1142     NdisPhysicalMediumNative802_11,
   1143     NdisPhysicalMediumBluetooth,
   1144     NdisPhysicalMediumInfiniband,
   1145     NdisPhysicalMediumWiMax,
   1146     NdisPhysicalMediumUWB,
   1147     NdisPhysicalMedium802_3,
   1148     NdisPhysicalMedium802_5,
   1149     NdisPhysicalMediumIrda,
   1150     NdisPhysicalMediumWiredWAN,
   1151     NdisPhysicalMediumWiredCoWan,
   1152     NdisPhysicalMediumOther,
   1153     NdisPhysicalMediumMax
   1154   } NDIS_PHYSICAL_MEDIUM,*PNDIS_PHYSICAL_MEDIUM;
   1155 
   1156 #define NDIS_PROTOCOL_ID_DEFAULT 0x00
   1157 #define NDIS_PROTOCOL_ID_TCP_IP 0x02
   1158 #define NDIS_PROTOCOL_ID_IPX 0x06
   1159 #define NDIS_PROTOCOL_ID_NBF 0x07
   1160 #define NDIS_PROTOCOL_ID_MAX 0x0F
   1161 #define NDIS_PROTOCOL_ID_MASK 0x0F
   1162 
   1163   typedef struct _TRANSPORT_HEADER_OFFSET {
   1164     USHORT ProtocolType;
   1165     USHORT HeaderOffset;
   1166   } TRANSPORT_HEADER_OFFSET,*PTRANSPORT_HEADER_OFFSET;
   1167 
   1168   typedef struct _NETWORK_ADDRESS {
   1169     USHORT AddressLength;
   1170     USHORT AddressType;
   1171     UCHAR Address[1];
   1172   } NETWORK_ADDRESS,*PNETWORK_ADDRESS;
   1173 
   1174   typedef struct _NETWORK_ADDRESS_LIST {
   1175     LONG AddressCount;
   1176     USHORT AddressType;
   1177     NETWORK_ADDRESS Address[1];
   1178   } NETWORK_ADDRESS_LIST,*PNETWORK_ADDRESS_LIST;
   1179 
   1180   typedef struct _NETWORK_ADDRESS_IP {
   1181     USHORT sin_port;
   1182     ULONG in_addr;
   1183     UCHAR sin_zero[8];
   1184   } NETWORK_ADDRESS_IP,*PNETWORK_ADDRESS_IP;
   1185 
   1186 #define NETWORK_ADDRESS_LENGTH_IP sizeof (NETWORK_ADDRESS_IP)
   1187 
   1188   typedef struct _NETWORK_ADDRESS_IPX {
   1189     ULONG NetworkAddress;
   1190     UCHAR NodeAddress[6];
   1191     USHORT Socket;
   1192   } NETWORK_ADDRESS_IPX,*PNETWORK_ADDRESS_IPX;
   1193 
   1194 #define NETWORK_ADDRESS_LENGTH_IPX sizeof (NETWORK_ADDRESS_IPX)
   1195 
   1196   typedef enum _NDIS_HARDWARE_STATUS {
   1197     NdisHardwareStatusReady,
   1198     NdisHardwareStatusInitializing,
   1199     NdisHardwareStatusReset,
   1200     NdisHardwareStatusClosing,
   1201     NdisHardwareStatusNotReady
   1202   } NDIS_HARDWARE_STATUS,*PNDIS_HARDWARE_STATUS;
   1203 
   1204   typedef struct _GEN_GET_TIME_CAPS {
   1205     ULONG Flags;
   1206     ULONG ClockPrecision;
   1207   } GEN_GET_TIME_CAPS,*PGEN_GET_TIME_CAPS;
   1208 
   1209 #define READABLE_LOCAL_CLOCK 0x00000001
   1210 #define CLOCK_NETWORK_DERIVED 0x00000002
   1211 #define CLOCK_PRECISION 0x00000004
   1212 #define RECEIVE_TIME_INDICATION_CAPABLE 0x00000008
   1213 #define TIMED_SEND_CAPABLE 0x00000010
   1214 #define TIME_STAMP_CAPABLE 0x00000020
   1215 
   1216   typedef struct _GEN_GET_NETCARD_TIME {
   1217     ULONGLONG ReadTime;
   1218   } GEN_GET_NETCARD_TIME,*PGEN_GET_NETCARD_TIME;
   1219 
   1220   typedef struct _NDIS_PM_PACKET_PATTERN {
   1221     ULONG Priority;
   1222     ULONG Reserved;
   1223     ULONG MaskSize;
   1224     ULONG PatternOffset;
   1225     ULONG PatternSize;
   1226     ULONG PatternFlags;
   1227   } NDIS_PM_PACKET_PATTERN,*PNDIS_PM_PACKET_PATTERN;
   1228 
   1229   typedef enum _NDIS_DEVICE_POWER_STATE {
   1230     NdisDeviceStateUnspecified = 0,
   1231     NdisDeviceStateD0,
   1232     NdisDeviceStateD1,
   1233     NdisDeviceStateD2,
   1234     NdisDeviceStateD3,
   1235     NdisDeviceStateMaximum
   1236   } NDIS_DEVICE_POWER_STATE,*PNDIS_DEVICE_POWER_STATE;
   1237 
   1238   typedef struct _NDIS_PM_WAKE_UP_CAPABILITIES {
   1239     NDIS_DEVICE_POWER_STATE MinMagicPacketWakeUp;
   1240     NDIS_DEVICE_POWER_STATE MinPatternWakeUp;
   1241     NDIS_DEVICE_POWER_STATE MinLinkChangeWakeUp;
   1242   } NDIS_PM_WAKE_UP_CAPABILITIES,*PNDIS_PM_WAKE_UP_CAPABILITIES;
   1243 
   1244 #define NDIS_DEVICE_WAKE_UP_ENABLE 0x00000001
   1245 #define NDIS_DEVICE_WAKE_ON_PATTERN_MATCH_ENABLE 0x00000002
   1246 #define NDIS_DEVICE_WAKE_ON_MAGIC_PACKET_ENABLE 0x00000004
   1247 
   1248   typedef struct _NDIS_PNP_CAPABILITIES {
   1249     ULONG Flags;
   1250     NDIS_PM_WAKE_UP_CAPABILITIES WakeUpCapabilities;
   1251   } NDIS_PNP_CAPABILITIES,*PNDIS_PNP_CAPABILITIES;
   1252 
   1253   typedef enum _NDIS_FDDI_ATTACHMENT_TYPE {
   1254     NdisFddiTypeIsolated = 1,
   1255     NdisFddiTypeLocalA,
   1256     NdisFddiTypeLocalB,
   1257     NdisFddiTypeLocalAB,
   1258     NdisFddiTypeLocalS,
   1259     NdisFddiTypeWrapA,
   1260     NdisFddiTypeWrapB,
   1261     NdisFddiTypeWrapAB,
   1262     NdisFddiTypeWrapS,
   1263     NdisFddiTypeCWrapA,
   1264     NdisFddiTypeCWrapB,
   1265     NdisFddiTypeCWrapS,
   1266     NdisFddiTypeThrough
   1267   } NDIS_FDDI_ATTACHMENT_TYPE,*PNDIS_FDDI_ATTACHMENT_TYPE;
   1268 
   1269   typedef enum _NDIS_FDDI_RING_MGT_STATE {
   1270     NdisFddiRingIsolated = 1,
   1271     NdisFddiRingNonOperational,
   1272     NdisFddiRingOperational,
   1273     NdisFddiRingDetect,
   1274     NdisFddiRingNonOperationalDup,
   1275     NdisFddiRingOperationalDup,
   1276     NdisFddiRingDirected,
   1277     NdisFddiRingTrace
   1278   } NDIS_FDDI_RING_MGT_STATE,*PNDIS_FDDI_RING_MGT_STATE;
   1279 
   1280   typedef enum _NDIS_FDDI_LCONNECTION_STATE {
   1281     NdisFddiStateOff = 1,
   1282     NdisFddiStateBreak,
   1283     NdisFddiStateTrace,
   1284     NdisFddiStateConnect,
   1285     NdisFddiStateNext,
   1286     NdisFddiStateSignal,
   1287     NdisFddiStateJoin,
   1288     NdisFddiStateVerify,
   1289     NdisFddiStateActive,
   1290     NdisFddiStateMaintenance
   1291   } NDIS_FDDI_LCONNECTION_STATE,*PNDIS_FDDI_LCONNECTION_STATE;
   1292 
   1293   typedef enum _NDIS_WAN_MEDIUM_SUBTYPE {
   1294     NdisWanMediumHub,
   1295     NdisWanMediumX_25,
   1296     NdisWanMediumIsdn,
   1297     NdisWanMediumSerial,
   1298     NdisWanMediumFrameRelay,
   1299     NdisWanMediumAtm,
   1300     NdisWanMediumSonet,
   1301     NdisWanMediumSW56K,
   1302     NdisWanMediumPPTP,
   1303     NdisWanMediumL2TP,
   1304     NdisWanMediumIrda,
   1305     NdisWanMediumParallel,
   1306     NdisWanMediumPppoe
   1307   } NDIS_WAN_MEDIUM_SUBTYPE,*PNDIS_WAN_MEDIUM_SUBTYPE;
   1308 
   1309   typedef enum _NDIS_WAN_HEADER_FORMAT {
   1310     NdisWanHeaderNative,
   1311     NdisWanHeaderEthernet
   1312   } NDIS_WAN_HEADER_FORMAT,*PNDIS_WAN_HEADER_FORMAT;
   1313 
   1314   typedef enum _NDIS_WAN_QUALITY {
   1315     NdisWanRaw,
   1316     NdisWanErrorControl,
   1317     NdisWanReliable
   1318   } NDIS_WAN_QUALITY,*PNDIS_WAN_QUALITY;
   1319 
   1320   typedef struct _NDIS_WAN_PROTOCOL_CAPS {
   1321     ULONG Flags;
   1322     ULONG Reserved;
   1323   } NDIS_WAN_PROTOCOL_CAPS,*PNDIS_WAN_PROTOCOL_CAPS;
   1324 
   1325 #define WAN_PROTOCOL_KEEPS_STATS 0x00000001
   1326 
   1327   typedef enum _NDIS_802_5_RING_STATE {
   1328     NdisRingStateOpened = 1,
   1329     NdisRingStateClosed,
   1330     NdisRingStateOpening,
   1331     NdisRingStateClosing,
   1332     NdisRingStateOpenFailure,
   1333     NdisRingStateRingFailure
   1334   } NDIS_802_5_RING_STATE,*PNDIS_802_5_RING_STATE;
   1335 
   1336   typedef enum _NDIS_MEDIA_STATE {
   1337     NdisMediaStateConnected,
   1338     NdisMediaStateDisconnected
   1339   } NDIS_MEDIA_STATE,*PNDIS_MEDIA_STATE;
   1340 
   1341   typedef ULONG Priority_802_3;
   1342 
   1343   typedef struct _NDIS_CO_LINK_SPEED {
   1344     ULONG Outbound;
   1345     ULONG Inbound;
   1346   } NDIS_CO_LINK_SPEED,*PNDIS_CO_LINK_SPEED;
   1347 
   1348 #ifndef _NDIS_
   1349   typedef int NDIS_STATUS,*PNDIS_STATUS;
   1350 #endif
   1351 
   1352   typedef struct _NDIS_GUID {
   1353     GUID Guid;
   1354     __C89_NAMELESS union {
   1355       NDIS_OID Oid;
   1356       NDIS_STATUS Status;
   1357     };
   1358     ULONG Size;
   1359     ULONG Flags;
   1360   } NDIS_GUID,*PNDIS_GUID;
   1361 
   1362 #define fNDIS_GUID_TO_OID 0x00000001
   1363 #define fNDIS_GUID_TO_STATUS 0x00000002
   1364 #define fNDIS_GUID_ANSI_STRING 0x00000004
   1365 #define fNDIS_GUID_UNICODE_STRING 0x00000008
   1366 #define fNDIS_GUID_ARRAY 0x00000010
   1367 #define fNDIS_GUID_ALLOW_READ 0x00000020
   1368 #define fNDIS_GUID_ALLOW_WRITE 0x00000040
   1369 
   1370 #define NDIS_PACKET_TYPE_DIRECTED 0x00000001
   1371 #define NDIS_PACKET_TYPE_MULTICAST 0x00000002
   1372 #define NDIS_PACKET_TYPE_ALL_MULTICAST 0x00000004
   1373 #define NDIS_PACKET_TYPE_BROADCAST 0x00000008
   1374 #define NDIS_PACKET_TYPE_SOURCE_ROUTING 0x00000010
   1375 #define NDIS_PACKET_TYPE_PROMISCUOUS 0x00000020
   1376 #define NDIS_PACKET_TYPE_SMT 0x00000040
   1377 #define NDIS_PACKET_TYPE_ALL_LOCAL 0x00000080
   1378 #define NDIS_PACKET_TYPE_GROUP 0x00001000
   1379 #define NDIS_PACKET_TYPE_ALL_FUNCTIONAL 0x00002000
   1380 #define NDIS_PACKET_TYPE_FUNCTIONAL 0x00004000
   1381 #define NDIS_PACKET_TYPE_MAC_FRAME 0x00008000
   1382 
   1383 #define NDIS_RING_SIGNAL_LOSS 0x00008000
   1384 #define NDIS_RING_HARD_ERROR 0x00004000
   1385 #define NDIS_RING_SOFT_ERROR 0x00002000
   1386 #define NDIS_RING_TRANSMIT_BEACON 0x00001000
   1387 #define NDIS_RING_LOBE_WIRE_FAULT 0x00000800
   1388 #define NDIS_RING_AUTO_REMOVAL_ERROR 0x00000400
   1389 #define NDIS_RING_REMOVE_RECEIVED 0x00000200
   1390 #define NDIS_RING_COUNTER_OVERFLOW 0x00000100
   1391 #define NDIS_RING_SINGLE_STATION 0x00000080
   1392 #define NDIS_RING_RING_RECOVERY 0x00000040
   1393 
   1394 #define NDIS_PROT_OPTION_ESTIMATED_LENGTH 0x00000001
   1395 #define NDIS_PROT_OPTION_NO_LOOPBACK 0x00000002
   1396 #define NDIS_PROT_OPTION_NO_RSVD_ON_RCVPKT 0x00000004
   1397 #define NDIS_PROT_OPTION_SEND_RESTRICTED 0x00000008
   1398 
   1399 #define NDIS_MAC_OPTION_COPY_LOOKAHEAD_DATA 0x00000001
   1400 #define NDIS_MAC_OPTION_RECEIVE_SERIALIZED 0x00000002
   1401 #define NDIS_MAC_OPTION_TRANSFERS_NOT_PEND 0x00000004
   1402 #define NDIS_MAC_OPTION_NO_LOOPBACK 0x00000008
   1403 #define NDIS_MAC_OPTION_FULL_DUPLEX 0x00000010
   1404 #define NDIS_MAC_OPTION_EOTX_INDICATION 0x00000020
   1405 #define NDIS_MAC_OPTION_8021P_PRIORITY 0x00000040
   1406 #define NDIS_MAC_OPTION_SUPPORTS_MAC_ADDRESS_OVERWRITE 0x00000080
   1407 #define NDIS_MAC_OPTION_RECEIVE_AT_DPC 0x00000100
   1408 #define NDIS_MAC_OPTION_8021Q_VLAN 0x00000200
   1409 #define NDIS_MAC_OPTION_RESERVED 0x80000000
   1410 
   1411 #define NDIS_MEDIA_CAP_TRANSMIT 0x00000001
   1412 #define NDIS_MEDIA_CAP_RECEIVE 0x00000002
   1413 
   1414 #define NDIS_CO_MAC_OPTION_DYNAMIC_LINK_SPEED 0x00000001
   1415 
   1416   typedef struct _NDIS_IRDA_PACKET_INFO {
   1417     ULONG ExtraBOFs;
   1418     ULONG MinTurnAroundTime;
   1419   } NDIS_IRDA_PACKET_INFO,*PNDIS_IRDA_PACKET_INFO;
   1420 
   1421 #ifdef WIRELESS_WAN
   1422 
   1423   typedef enum _NDIS_WW_NETWORK_TYPE {
   1424     NdisWWGeneric,
   1425     NdisWWMobitex,
   1426     NdisWWPinpoint,
   1427     NdisWWCDPD,
   1428     NdisWWArdis,
   1429     NdisWWDataTAC,
   1430     NdisWWMetricom,
   1431     NdisWWGSM,
   1432     NdisWWCDMA,
   1433     NdisWWTDMA,
   1434     NdisWWAMPS,
   1435     NdisWWInmarsat,
   1436     NdisWWpACT,
   1437     NdisWWFlex,
   1438     NdisWWIDEN
   1439   } NDIS_WW_NETWORK_TYPE;
   1440 
   1441   typedef enum _NDIS_WW_HEADER_FORMAT {
   1442     NdisWWDIXEthernetFrames,
   1443     NdisWWMPAKFrames,
   1444     NdisWWRDLAPFrames,
   1445     NdisWWMDC4800Frames,
   1446     NdisWWNCLFrames
   1447   } NDIS_WW_HEADER_FORMAT;
   1448 
   1449   typedef enum _NDIS_WW_ENCRYPTION_TYPE {
   1450     NdisWWUnknownEncryption = -1,
   1451     NdisWWNoEncryption,
   1452     NdisWWDefaultEncryption,
   1453     NdisWWDESEncryption,
   1454     NdisWWRC2Encryption,
   1455     NdisWWRC4Encryption,
   1456     NdisWWRC5Encryption
   1457   } NDIS_WW_ENCRYPTION_TYPE,*PNDIS_WW_ENCRYPTION_TYPE;
   1458 
   1459   typedef enum _WW_ADDRESS_FORMAT {
   1460     WW_IEEE_ADDRESS = 0,
   1461     WW_MOBITEX_MAN_ADDRESS,
   1462     WW_DATATAC_RDLAP_ADDRESS,
   1463     WW_DATATAC_MDC4800_ADDRESS,
   1464     WW_DATATAC_RESERVED,
   1465     WW_IPv4_ADDRESS,
   1466     WW_IPv6_ADDRESS,
   1467     WW_PROPRIETARY_ADDRESS
   1468   } WW_ADDRESS_FORMAT;
   1469 
   1470   typedef enum _WW_GEN_SUM_EXCEPTION {
   1471     SIM_STATUS_OK = 0,
   1472     SIM_STATUS_ERROR,
   1473     SIM_STATUS_MISSING,
   1474     SIM_STATUS_NO_RESPONSE,
   1475     SIM_STATUS_REMOVED,
   1476     SIM_STATUS_CRYPT_ERROR,
   1477     SIM_STATUS_AUTH_ERROR,
   1478     SIM_STATUS_NEED_PIN,
   1479     SIM_STATUS_NEED_PUK,
   1480     SIM_STATUS_WRONG
   1481   } WW_GEN_SIM_EXCEPTION;
   1482 
   1483   typedef struct _NDIS_WW_INDICATION_REQUEST {
   1484     NDIS_OID Oid;
   1485     ULONG uIndicationFlag;
   1486     ULONG uApplicationToken;
   1487     HANDLE hIndicationHandle;
   1488     INT iPollingInterval;
   1489     NDIS_VAR_DATA_DESC InitialValue;
   1490     NDIS_VAR_DATA_DESC OIDIndicationValue;
   1491     NDIS_VAR_DATA_DESC TriggerValue;
   1492   } NDIS_WW_INDICATION_REQUEST,*PNDIS_WW_INDICATION_REQUEST;
   1493 
   1494 #define OID_INDICATION_REQUEST_ENABLE 0x0000
   1495 #define OID_INDICATION_REQUEST_CANCEL 0x0001
   1496 
   1497   typedef struct _WW_DEVICE_INFO {
   1498     NDIS_VAR_DATA_DESC Manufacturer;
   1499     NDIS_VAR_DATA_DESC ModelNum;
   1500     NDIS_VAR_DATA_DESC SWVersionNum;
   1501     NDIS_VAR_DATA_DESC SerialNum;
   1502   } WW_DEVICE_INFO,*PWW_DEVICE_INFO;
   1503 
   1504   typedef INT WW_OPERATION_MODE;
   1505   typedef INT WW_LOCK_STATUS;
   1506   typedef INT WW_DISABLE_TRANSMITTER;
   1507   typedef NDIS_VAR_DATA_DESC WW_NETWORK_ID;
   1508   typedef NDIS_VAR_DATA_DESC WW_PERMANENT_ADDRESS;
   1509 
   1510   typedef struct _WW_CURRENT_ADDRESS {
   1511     NDIS_WW_HEADER_FORMAT Format;
   1512     NDIS_VAR_DATA_DESC Address;
   1513   } WW_CURRENT_ADDRESS,*PWW_CURRENT_ADDRESS;
   1514 
   1515   typedef BOOLEAN WW_SUSPEND_DRIVER;
   1516   typedef NDIS_VAR_DATA_DESC WW_BASESTATION_ID;
   1517   typedef NDIS_VAR_DATA_DESC WW_CHANNEL_ID;
   1518   typedef BOOLEAN WW_ENCRYPTION_STATE;
   1519   typedef INT WW_CHANNEL_QUALITY;
   1520   typedef INT WW_REGISTRATION_STATUS;
   1521   typedef ULONG WW_RADIO_LINK_SPEED;
   1522   typedef ULONG WW_LATENCY;
   1523   typedef INT WW_BATTERY_LEVEL;
   1524   typedef INT WW_EXTERNAL_POWER;
   1525 
   1526   typedef struct _WW_PING_ADDRESS {
   1527     WW_ADDRESS_FORMAT Format;
   1528     NDIS_VAR_DATA_DESC TargetAddress;
   1529     UINT uTime;
   1530   } WW_PING_ADDRESS;
   1531 
   1532   typedef struct _WW_RECEIVE_SIGNAL_STRENGTH_INDICATOR {
   1533     INT iDecibels;
   1534     INT iFactor;
   1535   } WW_RECEIVE_SIGNAL_STRENGTH_INDICATOR;
   1536 
   1537   typedef struct _WW_SIM_STATUS {
   1538     BOOLEAN bHasSIM;
   1539     BOOLEAN bBlocked;
   1540     BOOLEAN bLocked;
   1541     BOOLEAN bInitialized;
   1542     UINT uCountdown;
   1543   } WW_SIM_STATUS;
   1544 
   1545   typedef struct _WW_ENABLE_SIM_PIN {
   1546     BOOLEAN bEnabled;
   1547     NDIS_VAR_DATA_DESC CurrentPIN;
   1548   } WW_ENABLE_SIM_PIN;
   1549 
   1550   typedef struct _WW_CHANGE_SIM_PIN {
   1551     NDIS_VAR_DATA_DESC OldPIN;
   1552     NDIS_VAR_DATA_DESC NewPIN;
   1553   } WW_CHANGE_SIM_PIN;
   1554 
   1555   typedef NDIS_VAR_DATA_DESC WW_ENABLE_SIM_PUK;
   1556   typedef NDIS_VAR_DATA_DESC WW_MET_FUNCTION;
   1557   typedef BOOLEAN WW_TAC_COMPRESSION;
   1558 
   1559   typedef struct _WW_TAC_SETCONFIG {
   1560     NDIS_VAR_DATA_DESC RCV_MODE;
   1561     NDIS_VAR_DATA_DESC TX_CONTROL;
   1562     NDIS_VAR_DATA_DESC RX_CONTROL;
   1563     NDIS_VAR_DATA_DESC FLOW_CONTROL;
   1564     NDIS_VAR_DATA_DESC RESET_CNF;
   1565     NDIS_VAR_DATA_DESC READ_CNF;
   1566   } WW_TAC_SETCONFIG,*PWW_TAC_SETCONFIG;
   1567 
   1568   typedef struct _WW_TAC_GETSTATUS {
   1569     BOOLEAN Action;
   1570     NDIS_VAR_DATA_DESC Command;
   1571     NDIS_VAR_DATA_DESC Option;
   1572     NDIS_VAR_DATA_DESC Response;
   1573   } WW_TAC_GETSTATUS,*PWW_TAC_GETSTATUS;
   1574 
   1575   typedef NDIS_VAR_DATA_DESC WW_TAC_USERHEADER;
   1576 
   1577   typedef struct _WW_TAC_GET_RESPONSE {
   1578     UINT SDUTag;
   1579     NDIS_VAR_DATA_DESC Response;
   1580   } WW_TAC_GET_RESPONSE;
   1581 
   1582   typedef INT WW_TAC_DISABLE_RECEIVER;
   1583   typedef INT WW_TAC_ANTENNA_MODE;
   1584   typedef INT WW_TAC_FLUSH_DATA;
   1585   typedef INT WW_TAC_SHUTDOWN_DEVICE;
   1586   typedef BOOLEAN WW_TAC_TRANSMITTER_KEYED;
   1587 
   1588   typedef struct _WW_TAC_SYSTEM_TABLE {
   1589     UINT SystemCount;
   1590     UCHAR ContryTable[32];
   1591     UCHAR PrefixTable[32];
   1592     UCHAR IDTable[32];
   1593   } WW_TAC_SYSTEM_TABLE;
   1594 
   1595   typedef struct _WW_TAC_CHANNEL_TABLE {
   1596     UINT ChannelCount;
   1597     UCHAR ChannelTable[64];
   1598     UCHAR AttrTable[64];
   1599   } WW_TAC_CHANNEL_TABLE;
   1600 
   1601   typedef NDIS_VAR_DATA_DESC WW_TAC_STATISTICS;
   1602 
   1603   typedef struct _WW_ARD_SNDCP {
   1604     NDIS_VAR_DATA_DESC Version;
   1605     INT BlockSize;
   1606     INT Window;
   1607   } WW_ARD_SNDCP,*PWW_ARD_SNDCP;
   1608 
   1609   typedef BOOLEAN WW_ARD_CHANNEL_STATUS;
   1610 
   1611   typedef struct _WW_ARD_DATAGRAM {
   1612     BOOLEAN LoadLevel;
   1613     INT SessionTime;
   1614     NDIS_VAR_DATA_DESC HostAddr;
   1615     NDIS_VAR_DATA_DESC THostAddr;
   1616   } WW_ARD_DATAGRAM,*PWW_ARD_DATAGRAM;
   1617 
   1618   typedef struct _WW_CDPD_SPNI {
   1619     ULONG SPNI[10];
   1620     INT OperatingMode;
   1621   } WW_CDPD_SPNI,*PWW_CDPD_SPNI;
   1622 
   1623   typedef struct _WW_CDPD_WIDE_AREA_SERVICE_ID {
   1624     ULONG WASI[10];
   1625     INT OperatingMode;
   1626   } WW_CDPD_WIDE_AREA_SERVICE_ID,*PWW_CDPD_WIDE_AREA_SERVICE_ID;
   1627 
   1628   typedef INT WW_CDPD_AREA_COLOR;
   1629   typedef ULONG WW_CDPD_TX_POWER_LEVEL;
   1630   typedef NDIS_VAR_DATA_DESC WW_CDPD_EID;
   1631   typedef INT WW_CDPD_HEADER_COMPRESSION;
   1632   typedef INT WW_CDPD_DATA_COMPRESSION;
   1633 
   1634   typedef struct _WW_CDPD_CHANNEL_SELECT {
   1635     ULONG ChannelID;
   1636     ULONG fixedDuration;
   1637   } WW_CDPD_CHANNEL_SELECT,*PWW_CDPD_CHANNEL_SELECT;
   1638 
   1639   typedef enum _WW_CDPD_CHANNEL_STATE {
   1640     CDPDChannelNotAvail,
   1641     CDPDChannelScanning,
   1642     CDPDChannelInitAcquired,
   1643     CDPDChannelAcquired,
   1644     CDPDChannelSleeping,
   1645     CDPDChannelWaking,
   1646     CDPDChannelCSDialing,
   1647     CDPDChannelCSRedial,
   1648     CDPDChannelCSAnswering,
   1649     CDPDChannelCSConnected,
   1650     CDPDChannelCSSuspended
   1651   } WW_CDPD_CHANNEL_STATE,*PWW_CDPD_CHANNEL_STATE;
   1652 
   1653   typedef enum _WW_CDPD_NEI_FORMAT {
   1654     CDPDNeiIPv4,
   1655     CDPDNeiCLNP,
   1656     CDPDNeiIPv6
   1657   } WW_CDPD_NEI_FORMAT,*PWW_CDPD_NEI_FORMAT;
   1658 
   1659   typedef enum _WW_CDPD_NEI_TYPE {
   1660     CDPDNeiIndividual,
   1661     CDPDNeiMulticast,
   1662     CDPDNeiBroadcast
   1663   } WW_CDPD_NEI_TYPE;
   1664 
   1665   typedef struct _WW_CDPD_NEI {
   1666     ULONG uNeiIndex;
   1667     WW_CDPD_NEI_FORMAT NeiFormat;
   1668     WW_CDPD_NEI_TYPE NeiType;
   1669     WORD NeiGmid;
   1670     NDIS_VAR_DATA_DESC NeiAddress;
   1671   } WW_CDPD_NEI;
   1672 
   1673   typedef enum _WW_CDPD_NEI_STATE {
   1674     CDPDUnknown,
   1675     CDPDRegistered,
   1676     CDPDDeregistered
   1677   } WW_CDPD_NEI_STATE,*PWW_CDPD_NEI_STATE;
   1678 
   1679   typedef enum _WW_CDPD_NEI_SUB_STATE {
   1680     CDPDPending,
   1681     CDPDNoReason,
   1682     CDPDMDISNotCapable,
   1683     CDPDNEINotAuthorized,
   1684     CDPDInsufficientAuth,
   1685     CDPDUnsupportedAuth,
   1686     CDPDUsageExceeded,
   1687     CDPDDeniedThisNetwork
   1688   } WW_CDPD_NEI_SUB_STATE;
   1689 
   1690   typedef struct _WW_CDPD_NEI_REG_STATE {
   1691     ULONG uNeiIndex;
   1692     WW_CDPD_NEI_STATE NeiState;
   1693     WW_CDPD_NEI_SUB_STATE NeiSubState;
   1694   } WW_CDPD_NEI_REG_STATE,*PWW_CDPD_NEI_REG_STATE;
   1695 
   1696   typedef struct _WW_CDPD_SERVICE_PROVIDER_ID {
   1697     ULONG SPI[10];
   1698     INT OperatingMode;
   1699   } WW_CDPD_SERVICE_PROVIDER_ID,*PWW_CDPD_SERVICE_PROVIDER_ID;
   1700 
   1701   typedef INT WW_CDPD_SLEEP_MODE;
   1702   typedef ULONG WW_CDPD_TEI;
   1703 
   1704   typedef struct _WW_CDPD_CIRCUIT_SWITCHED {
   1705     INT service_preference;
   1706     INT service_status;
   1707     INT connect_rate;
   1708     NDIS_VAR_DATA_DESC dial_code[20];
   1709     ULONG sid;
   1710     INT a_b_side_selection;
   1711     INT AMPS_channel;
   1712     ULONG action;
   1713     NDIS_VAR_DATA_DESC default_dial[20];
   1714     NDIS_VAR_DATA_DESC call_back[20];
   1715     ULONG sid_list[10];
   1716     ULONG inactivity_timer;
   1717     ULONG receive_timer;
   1718     ULONG conn_resp_timer;
   1719     ULONG reconn_resp_timer;
   1720     ULONG disconn_timer;
   1721     ULONG NEI_reg_timer;
   1722     ULONG reconn_retry_timer;
   1723     ULONG link_reset_timer;
   1724     ULONG link_reset_ack_timer;
   1725     ULONG n401_retry_limit;
   1726     ULONG n402_retry_limit;
   1727     ULONG n404_retry_limit;
   1728     ULONG n405_retry_limit;
   1729   } WW_CDPD_CIRCUIT_SWITCHED,*WW_PCDPD_CIRCUIT_SWITCHED;
   1730 
   1731   typedef ULONG WW_CDPD_RSSI;
   1732   typedef INT WW_CDPD_CS_SERVICE_PREFERENCE;
   1733   typedef INT WW_CDPD_CS_SERVICE_STATUS;
   1734 
   1735   typedef struct _WW_CDPD_CS_INFO {
   1736     INT ConnectRage;
   1737     NDIS_VAR_DATA_DESC DialCode;
   1738     UINT SID;
   1739     INT ABSideSelection;
   1740     INT AMPSChannel;
   1741   } WW_CDPD_CS_INFO;
   1742 
   1743   typedef UINT WW_CDPD_CS_SUSPEND;
   1744   typedef NDIS_VAR_DATA_DESC WW_CDPD_DEFAULT_DIAL_CODE;
   1745 
   1746   typedef struct _WW_CDPD_CS_CALLBACK {
   1747     UINT Enabled;
   1748     NDIS_VAR_DATA_DESC Number;
   1749   } WW_CDPD_CS_CALLBACK;
   1750 
   1751   typedef struct _WW_CDPD_CS_SID_LIST {
   1752     UINT AMPSystemId[10];
   1753   } WW_CDPD_CS_SID_LIST;
   1754 
   1755   typedef struct _WW_CDPD_CS_CONFIGURATION {
   1756     UINT InactivityTimer;
   1757     UINT ReceiveTimer;
   1758     UINT ConnResTimer;
   1759     UINT ReconnRespTimer;
   1760     UINT DisconnTimer;
   1761     UINT NEIRegTimer;
   1762     UINT ReconnRetryTimer;
   1763     UINT LinkResetTimer;
   1764     UINT LinkResetAckTimer;
   1765     UINT n401RetryLimit;
   1766     UINT n402RetryLimit;
   1767     UINT n404RetryLimit;
   1768     UINT n405RetryLimit;
   1769   } WW_CDPD_CS_CONFIGURATION;
   1770 
   1771   typedef INT WW_PIN_AUTHORIZED;
   1772 
   1773   typedef struct _WW_PIN_LOCATION {
   1774     INT Latitude;
   1775     INT Longitude;
   1776     INT Altitude;
   1777     INT FixTime;
   1778     INT NetTime;
   1779     INT LocQuality;
   1780     INT LatReg;
   1781     INT LongReg;
   1782     INT GMTOffset;
   1783   } WW_PIN_LOCATION,*PWW_PIN_LOCATION;
   1784 
   1785   typedef ULONG WW_MBX_MAILBOX_FLAG;
   1786 
   1787   typedef struct _WW_MBX_PMAN {
   1788     BOOLEAN ACTION;
   1789     ULONG MAN;
   1790     UCHAR PASSWORD[8];
   1791   } WW_MBX_PMAN,*PWW_MBX_PMAN;
   1792 
   1793   typedef struct _WW_MBX_FLEXLIST {
   1794     INT count;
   1795     ULONG MAN[7];
   1796   } WW_MBX_FLEXLIST;
   1797 
   1798   typedef struct _WW_MBX_GROUPLIST {
   1799     INT count;
   1800     ULONG MAN[15];
   1801   } WW_MBX_GROUPLIST;
   1802 
   1803   typedef enum _WW_MBX_TRAFFIC_AREA {
   1804     unknown_traffic_area,
   1805     in_traffic_area,
   1806     in_auth_traffic_area,
   1807     unauth_traffic_area
   1808   } WW_MBX_TRAFFIC_AREA;
   1809 
   1810   typedef INT WW_MBX_LIVE_DIE;
   1811 
   1812   typedef struct _WW_MBX_CHANNEL_PAIR {
   1813     ULONG Mobile_Tx;
   1814     ULONG Mobile_Rx;
   1815   } WW_MBX_CHANNEL_PAIR,*PWW_MBX_CHANNEL_PAIR;
   1816 
   1817   typedef struct _WW_MBX_TEMPDEFAULTLIST {
   1818     ULONG Length;
   1819     WW_MBX_CHANNEL_PAIR ChannelPair[1];
   1820   } WW_MBX_TEMPDEFAULTLIST,*WW_PMBX_TEMPDEFAULTLIST;
   1821 #endif /* WIRELESS_WAN */
   1822 
   1823   typedef struct _BPC_FILETIME {
   1824     ULONG dwLowDateTime;
   1825     ULONG dwHighDateTime;
   1826   } BPC_FILETIME,*PBPC_FILETIME;
   1827 
   1828   typedef PVOID BPC_HANDLE;
   1829 
   1830 #define BPC_MIN_DIMENSION 1
   1831 #define BPC_MAX_BUFFER_SIZE 64
   1832 #define BPC_MIN_BUFFER_SIZE 4
   1833 #define BPC_DEVICE_ANY ((BPC_HANDLE) 0xFFFFFFFF)
   1834 
   1835   typedef enum _NDIS_BPC_INDICATE_REASON {
   1836     bpcBufferFull = 0,
   1837     bpcBufferForced,
   1838     bpcBufferTimeOut,
   1839     bpcBufferDiscontinuity,
   1840     bpcBufferOverflow,
   1841     bpcBufferStatusEvent
   1842   } NDIS_BPC_INDICATE_REASON,*PNDIS_BPC_INDICATE_REASON;
   1843 
   1844 #define BPC_STREAM_TYPE_GENERIC_MIN 0x01000000
   1845 #define BPC_STREAM_TYPE_RAW 0x01000000
   1846 #define BPC_STREAM_TYPE_MPT_128 0x01000001
   1847 #define BPC_STREAM_TYPE_MPT_128_CRC 0x01000002
   1848 #define BPC_STREAM_TYPE_IP 0x01000003
   1849 #define BPC_STREAM_TYPE_PROVIDER_MIN 0x02000000
   1850 #define BPC_STREAM_TYPE_PROVIDER_MAX 0x02ffffff
   1851 #define BPC_STREAM_TYPE_ADAPTER_MIN 0x03000000
   1852 #define BPC_STREAM_TYPE_ADAPTER_MAX 0x03ffffff
   1853 
   1854   typedef struct _NDIS_BPC_ADAPTER_CAPS {
   1855     ULONG ulBPCMajorRev;
   1856     ULONG ulBPCMinorRev;
   1857     ULONG ulcHSDataDevices;
   1858     ULONG ulbpsHSDeviceMax;
   1859     ULONG ulcLSDataDevices;
   1860     ULONG ulbpsLSDeviceMax;
   1861     ULONG ulcTuningDevices;
   1862     ULONG ulcbLargestStatus;
   1863     ULONG ulVendorId;
   1864     ULONG ulAdapterId;
   1865     GUID guidProvider;
   1866   } NDIS_BPC_ADAPTER_CAPS,*PNDIS_BPC_ADAPTER_CAPS;
   1867 
   1868   typedef struct _NDIS_BPC_DEVICES {
   1869     ULONG ulcDevices;
   1870     BPC_HANDLE rgnhDevices[BPC_MIN_DIMENSION];
   1871   } NDIS_BPC_DEVICES,*PNDIS_BPC_DEVICES;
   1872 
   1873 #define CbDevices(cnt) (FIELD_OFFSET(NDIS_BPC_DEVICES,rgnhDevices) + (cnt) *sizeof(BPC_HANDLE))
   1874 
   1875   typedef struct NDIS_BPC_DEVICE_CAPS {
   1876     BPC_HANDLE nhDevice;
   1877     ULONG ulBPCCaps;
   1878     ULONG ulbpsMax;
   1879     ULONG ulcStreamTypes;
   1880     ULONG rgulStreamTypes[BPC_MIN_DIMENSION];
   1881   } NDIS_BPC_DEVICE_CAPS,*PNDIS_BPC_DEVICE_CAPS;
   1882 
   1883 #define CbDeviceCaps(cnt) (FIELD_OFFSET(NDIS_BPC_DEVICE_CAPS,rgulStreamTypes) + (cnt)*sizeof(ULONG))
   1884 
   1885 #define BPCCapBusMasteredData 0x01
   1886 #define BPCCapIndependentTuner 0x02
   1887 #define BPCCapExternalDataBus 0x04
   1888 #define BPCCapLowSpeedData 0x10
   1889 #define BPCCapHighSpeedData 0x20
   1890 
   1891   typedef struct NDIS_BPC_DEVICE_SETTINGS {
   1892     BPC_HANDLE nhDevice;
   1893     ULONG ulBPCCaps;
   1894     ULONG ulcConnections;
   1895     BOOLEAN fEnabled;
   1896     ULONG ulStreamType;
   1897     ULONG ulcbAddressConnection;
   1898     ULONG rgulAddressConnection[BPC_MIN_DIMENSION];
   1899   } NDIS_BPC_DEVICE_SETTINGS,*PNDIS_BPC_DEVICE_SETTINGS;
   1900 
   1901 #define CbDeviceSettings(cnt) (FIELD_OFFSET(NDIS_BPC_DEVICE_SETTINGS,rgulAddressConnection) + (cnt)*sizeof(ULONG))
   1902 
   1903 #define BPC_CONNECT_STATE_UNCOMMITTED 0
   1904 #define BPC_CONNECT_STATE_QUEUED 1
   1905 #define BPC_CONNECT_STATE_ACTIVE 2
   1906 #define BPC_CONNECT_STATE_DISCONNECTING 3
   1907 
   1908   typedef struct NDIS_BPC_CONNECTION_STATUS {
   1909     BPC_HANDLE nhConnection;
   1910     BPC_HANDLE nhDevice;
   1911     ULONG ulConnectPriority;
   1912     ULONG ulDisconnectPriority;
   1913     ULONG ulbpsAverage;
   1914     ULONG ulbpsBurst;
   1915     ULONG ulState;
   1916     BOOLEAN fEnabled;
   1917   } NDIS_BPC_CONNECTION_STATUS,*PNDIS_BPC_CONNECTION_STATUS;
   1918 
   1919   typedef struct NDIS_BPC_ADDRESS_COMPARE {
   1920     BOOLEAN fEqual;
   1921     ULONG ulcbFirstOffset;
   1922     ULONG ulcbFirstLength;
   1923     ULONG ulcbSecondOffset;
   1924     ULONG ulcbSecondLength;
   1925   } NDIS_BPC_ADDRESS_COMPARE,*PNDIS_BPC_ADDRESS_COMPARE;
   1926 
   1927 #define BPC_GUIDE_GENERIC_MIN 0x01000000
   1928 #define BPC_GUIDE_GENERIC_MAX 0x01ffffff
   1929 #define BPC_GUIDE_PROVIDER_MIN 0x02000000
   1930 #define BPC_GUIDE_PROVIDER_MAX 0x02ffffff
   1931 #define BPC_GUIDE_ADAPTER_MIN 0x03000000
   1932 #define BPC_GUIDE_ADAPTER_MAX 0x03ffffff
   1933 
   1934   typedef struct NDIS_BPC_PROGRAM_GUIDE {
   1935     ULONG ulGuideType;
   1936     BPC_FILETIME ftLastUpdate;
   1937     ULONG ulChangeNumber;
   1938     ULONG ulcbGuideSize;
   1939     ULONG rgulGuideData[BPC_MIN_DIMENSION];
   1940   } NDIS_BPC_PROGRAM_GUIDE,*PNDIS_BPC_PROGRAM_GUIDE;
   1941 
   1942   typedef enum _NDIS_BPC_ERROR {
   1943     bpcErrorUnknownFailure = 0xc0ff0000,
   1944     bpcErrorHardwareFailure,
   1945     bpcErrorProviderFailure,
   1946     bpcErrorNoDataDevice,
   1947     bpcErrorNoTuningDevice,
   1948     bpcErrorDeviceNotCapable,
   1949     bpcErrorConflictingDevice,
   1950     bpcErrorConflictingCapability,
   1951     bpcErrorNoBufferMemory,
   1952     bpcErrorNoResources,
   1953     bpcErrorAdapterClosing,
   1954     bpcErrorConnectionClosing,
   1955     bpcErrorTooComplex,
   1956     bpcErrorProviderNotSupported,
   1957     bpcErrorUnknownProviderStructure,
   1958     bpcErrorAddressNotSupported,
   1959     bpcErrorInvalidAddress,
   1960     bpcErrorUnknownAdapterStructure
   1961   } NDIS_BPC_ERROR,*PNDIS_BPC_ERROR;
   1962 
   1963   typedef struct NDIS_BPC_LAST_ERROR {
   1964     ULONG ulErrorContext;
   1965     ULONG ulBPCError;
   1966     ULONG ulAdapterError;
   1967     ULONG ulAdapterContext;
   1968   } NDIS_BPC_LAST_ERROR,*PNDIS_BPC_LAST_ERROR;
   1969 
   1970   typedef struct NDIS_BPC_POOL {
   1971     BPC_HANDLE nhConnection;
   1972     ULONG ulcbPoolSize;
   1973     ULONG ulcbMaxBufferSize;
   1974     ULONG ulcbBufferReserved;
   1975   } NDIS_BPC_POOL,*PNDIS_BPC_POOL;
   1976 
   1977   typedef struct NDIS_BPC_CONNECT {
   1978     BPC_HANDLE nhConnection;
   1979     BPC_HANDLE nhDevice;
   1980     ULONG ulConnectPriority;
   1981     ULONG ulDisconnectPriority;
   1982     BOOLEAN fImmediate;
   1983     ULONG ulcbAddress;
   1984     GUID guidProvider;
   1985     ULONG rgulAddress[BPC_MIN_DIMENSION];
   1986   } NDIS_BPC_CONNECT,*PNDIS_BPC_CONNECT;
   1987 
   1988 #define CbConnect(cnt) (FIELD_OFFSET(NDIS_BPC_CONNECT,rgulAddress) + (cnt)*sizeof(ULONG))
   1989 
   1990   typedef struct NDIS_BPC_COMMIT {
   1991     ULONG ulcConnections;
   1992     BPC_HANDLE rgnhConnections[BPC_MIN_DIMENSION];
   1993   } NDIS_BPC_COMMIT,*PNDIS_BPC_COMMIT;
   1994 
   1995   typedef struct NDIS_BPC_DISCONNECT {
   1996     BPC_HANDLE nhConnection;
   1997   } NDIS_BPC_DISCONNECT,*PNDIS_BPC_DISCONNECT;
   1998 
   1999   typedef struct NDIS_BPC_CONNECTION_ENABLE {
   2000     BPC_HANDLE nhConnection;
   2001     BOOLEAN fEnabled;
   2002   } NDIS_BPC_CONNECTION_ENABLE,*PNDIS_BPC_CONNECTION_ENABLE;
   2003 
   2004   typedef struct NDIS_BPC_POOL_RETURN {
   2005     BPC_HANDLE nhConnection;
   2006   } NDIS_BPC_POOL_RETURN,*PNDIS_BPC_POOL_RETURN;
   2007 
   2008   typedef struct NDIS_BPC_FORCE_RECEIVE {
   2009     BPC_HANDLE nhConnection;
   2010     ULONG ulReasonCode;
   2011   } NDIS_BPC_FORCE_RECEIVE,*PNDIS_BPC_FORCE_RECEIVE;
   2012 
   2013   typedef struct NDIS_BPC_MEDIA_SPECIFIC_INFORMATION {
   2014     BPC_HANDLE nhConnection;
   2015     ULONG ulBPCStreamType;
   2016     ULONG ulReasonCode;
   2017     PVOID pvMiniportReserved1;
   2018     ULONG ulMiniportReserved2;
   2019   } NDIS_BPC_MEDIA_SPECIFIC_INFORMATION,*PNDIS_BPC_MEDIA_SPECIFIC_INFORMATION;
   2020 
   2021 #define BPC_CATEGORY_BPC 0x01000000
   2022 #define BPC_CATEGORY_PROVIDER 0x02000000
   2023 #define BPC_CATEGORY_ADAPTER 0x03000000
   2024 
   2025 #define BPC_STATUS_CONNECTED 0x00000001
   2026 #define BPC_STATUS_QUEUED 0x00000002
   2027 #define BPC_STATUS_ACTIVE 0x00000003
   2028 #define BPC_STATUS_DISCONNECTED 0x00000004
   2029 #define BPC_STATUS_OVERFLOW 0x00000005
   2030 #define BPC_STATUS_DATA_STOP 0x00000006
   2031 #define BPC_STATUS_DATA_START 0x00000007
   2032 #define BPC_STATUS_DATA_ERROR 0x00000008
   2033 
   2034   typedef struct NDIS_BPC_STATUS {
   2035     ULONG ulStatusCategory;
   2036     ULONG ulStatusType;
   2037     ULONG ulcbStatus;
   2038     ULONG rgulStatus;
   2039   } NDIS_BPC_STATUS,*PNDIS_BPC_STATUS;
   2040 
   2041   typedef struct NDIS_BPC_STATUS_CONNECTION {
   2042     BPC_HANDLE nhConnection;
   2043     BPC_HANDLE nhDevice;
   2044   } NDIS_BPC_STATUS_CONNECTED,*PNDIS_BPC_STATUS_CONNECTED;
   2045 
   2046 #ifdef __cplusplus
   2047 }
   2048 #endif
   2049 
   2050 #define NDIS_MINIPORT_BUS_MASTER 0x00000001
   2051 #define NDIS_MINIPORT_WDM_DRIVER 0x00000002
   2052 #define NDIS_MINIPORT_SG_LIST 0x00000004
   2053 #define NDIS_MINIPORT_SUPPORTS_MEDIA_QUERY 0x00000008
   2054 #define NDIS_MINIPORT_INDICATES_PACKETS 0x00000010
   2055 #define NDIS_MINIPORT_IGNORE_PACKET_QUEUE 0x00000020
   2056 #define NDIS_MINIPORT_IGNORE_REQUEST_QUEUE 0x00000040
   2057 #define NDIS_MINIPORT_IGNORE_TOKEN_RING_ERRORS 0x00000080
   2058 #define NDIS_MINIPORT_INTERMEDIATE_DRIVER 0x00000100
   2059 #define NDIS_MINIPORT_IS_NDIS_5 0x00000200
   2060 #define NDIS_MINIPORT_IS_CO 0x00000400
   2061 #define NDIS_MINIPORT_DESERIALIZE 0x00000800
   2062 #define NDIS_MINIPORT_REQUIRES_MEDIA_POLLING 0x00001000
   2063 #define NDIS_MINIPORT_SUPPORTS_MEDIA_SENSE 0x00002000
   2064 #define NDIS_MINIPORT_NETBOOT_CARD 0x00004000
   2065 #define NDIS_MINIPORT_PM_SUPPORTED 0x00008000
   2066 #define NDIS_MINIPORT_SUPPORTS_MAC_ADDRESS_OVERWRITE 0x00010000
   2067 #define NDIS_MINIPORT_USES_SAFE_BUFFER_APIS 0x00020000
   2068 #define NDIS_MINIPORT_HIDDEN 0x00040000
   2069 #define NDIS_MINIPORT_SWENUM 0x00080000
   2070 #define NDIS_MINIPORT_SURPRISE_REMOVE_OK 0x00100000
   2071 #define NDIS_MINIPORT_NO_HALT_ON_SUSPEND 0x00200000
   2072 #define NDIS_MINIPORT_HARDWARE_DEVICE 0x00400000
   2073 #define NDIS_MINIPORT_SUPPORTS_CANCEL_SEND_PACKETS 0x00800000
   2074 #define NDIS_MINIPORT_64BITS_DMA 0x01000000
   2075 #define NDIS_MINIPORT_USE_NEW_BITS 0x02000000
   2076 #define NDIS_MINIPORT_EXCLUSIVE_INTERRUPT 0x04000000
   2077 #define NDIS_MINIPORT_SENDS_PACKET_ARRAY 0x08000000
   2078 #define NDIS_MINIPORT_FILTER_IM 0x10000000
   2079 #define NDIS_MINIPORT_SHORT_PACKETS_ARE_PADDED 0x20000000
   2080 
   2081 #endif /* _NTDDNDIS_ */
   2082 
   2083