Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

Ntddndis.h

Go to the documentation of this file.
00001 /*++ BUILD Version: 0001                // Increment this if a change has global effects
00002    Copyright (c) 1990-1993  Microsoft Corporation
00003    Module Name:
00004    ntddndis.h
00005    Abstract:
00006    This is the include file that defines all constants and types for
00007    accessing the Network driver interface device.
00008    Author:
00009    Steve Wood (stevewo) 27-May-1990
00010    Revision History:
00011    Adam Barr (adamba)           04-Nov-1992             added the correct values for NDIS 3.0.
00012    Jameel Hyder (jameelh)       01-Aug-95               added Pnp IoCTLs and structures
00013    Kyle Brandon (kyleb) 09/24/96                added general co ndis oids.
00014    -- */
00015 #ifndef _NTDDNDIS_
00016 #define _NTDDNDIS_
00017 //
00018 // Device Name - this string is the name of the device.  It is the name
00019 // that should be passed to NtOpenFile when accessing the device.
00020 //
00021 // Note:  For devices that support multiple units, it should be suffixed
00022 //                with the Ascii representation of the unit number.
00023 //
00024 #define DD_NDIS_DEVICE_NAME "\\Device\\UNKNOWN"
00025 //
00026 // NtDeviceIoControlFile IoControlCode values for this device.
00027 //
00028 // Warning:  Remember that the low two bits of the code specify how the
00029 //                       buffers are passed to the driver!
00030 //
00031 #define _NDIS_CONTROL_CODE(request,method) \
00032                         CTL_CODE(FILE_DEVICE_PHYSICAL_NETCARD, request, method, FILE_ANY_ACCESS)
00033 #define IOCTL_NDIS_QUERY_GLOBAL_STATS   _NDIS_CONTROL_CODE( 0, METHOD_OUT_DIRECT )
00034 #define IOCTL_NDIS_QUERY_ALL_STATS              _NDIS_CONTROL_CODE( 1, METHOD_OUT_DIRECT )
00035 #define IOCTL_NDIS_ADD_DEVICE                   _NDIS_CONTROL_CODE( 2, METHOD_BUFFERED )
00036 #define IOCTL_NDIS_DELETE_DEVICE                _NDIS_CONTROL_CODE( 3, METHOD_BUFFERED )
00037 #define IOCTL_NDIS_TRANSLATE_NAME               _NDIS_CONTROL_CODE( 4, METHOD_BUFFERED )
00038 #define IOCTL_NDIS_ADD_TDI_DEVICE               _NDIS_CONTROL_CODE( 5, METHOD_BUFFERED )
00039 #define IOCTL_NDIS_NOTIFY_PROTOCOL              _NDIS_CONTROL_CODE( 6, METHOD_BUFFERED )
00040 #define IOCTL_NDIS_GET_LOG_DATA                 _NDIS_CONTROL_CODE( 7, METHOD_OUT_DIRECT )
00041 //
00042 // NtDeviceIoControlFile InputBuffer/OutputBuffer record structures for
00043 // this device.
00044 //
00045 //
00046 // This is the type of an NDIS OID value.
00047 //
00048 typedef ULONG NDIS_OID, *PNDIS_OID;
00049 //
00050 // IOCTL_NDIS_QUERY_ALL_STATS returns a sequence of these, packed
00051 // together (no padding is required since statistics all have
00052 // four or eight bytes of data).
00053 //
00054 typedef struct _NDIS_STATISTICS_VALUE {
00055     NDIS_OID Oid;
00056     ULONG DataLength;
00057     UCHAR Data[1];              // variable length
00058 
00059 } NDIS_STATISTICS_VALUE, *PNDIS_STATISTICS_VALUE;
00060 
00061 //
00062 // Structure used by TRANSLATE_NAME IOCTL
00063 //
00064 typedef struct _NET_PNP_ID {
00065     ULONG ClassId;
00066     ULONG Token;
00067 } NET_PNP_ID, *PNET_PNP_ID;
00068 
00069 typedef struct _NET_PNP_TRANSLATE_LIST {
00070     ULONG BytesNeeded;
00071     NET_PNP_ID IdArray[ANYSIZE_ARRAY];
00072 } NET_PNP_TRANSLATE_LIST, *PNET_PNP_TRANSLATE_LIST;
00073 
00074 //
00075 // Structure used to define a self-contained variable data structure
00076 //
00077 typedef struct _NDIS_VAR_DATA_DESC {
00078     USHORT Length;              // # of octects of data
00079 
00080     USHORT MaximumLength;       // # of octects available
00081 
00082     LONG Offset;                // Offset of data relative to the descriptor
00083 
00084 } NDIS_VAR_DATA_DESC, *PNDIS_VAR_DATA_DESC;
00085 
00086 //
00087 // Object Identifiers used by NdisRequest Query/Set Information
00088 //
00089 //
00090 // General Objects
00091 //
00092 #define OID_GEN_SUPPORTED_LIST                                  0x00010101
00093 #define OID_GEN_HARDWARE_STATUS                                 0x00010102
00094 #define OID_GEN_MEDIA_SUPPORTED                                 0x00010103
00095 #define OID_GEN_MEDIA_IN_USE                                    0x00010104
00096 #define OID_GEN_MAXIMUM_LOOKAHEAD                               0x00010105
00097 #define OID_GEN_MAXIMUM_FRAME_SIZE                              0x00010106
00098 #define OID_GEN_LINK_SPEED                                              0x00010107
00099 #define OID_GEN_TRANSMIT_BUFFER_SPACE                   0x00010108
00100 #define OID_GEN_RECEIVE_BUFFER_SPACE                    0x00010109
00101 #define OID_GEN_TRANSMIT_BLOCK_SIZE                             0x0001010A
00102 #define OID_GEN_RECEIVE_BLOCK_SIZE                              0x0001010B
00103 #define OID_GEN_VENDOR_ID                                               0x0001010C
00104 #define OID_GEN_VENDOR_DESCRIPTION                              0x0001010D
00105 #define OID_GEN_CURRENT_PACKET_FILTER                   0x0001010E
00106 #define OID_GEN_CURRENT_LOOKAHEAD                               0x0001010F
00107 #define OID_GEN_DRIVER_VERSION                                  0x00010110
00108 #define OID_GEN_MAXIMUM_TOTAL_SIZE                              0x00010111
00109 #define OID_GEN_PROTOCOL_OPTIONS                                0x00010112
00110 #define OID_GEN_MAC_OPTIONS                                             0x00010113
00111 #define OID_GEN_MEDIA_CONNECT_STATUS                    0x00010114
00112 #define OID_GEN_MAXIMUM_SEND_PACKETS                    0x00010115
00113 #define OID_GEN_VENDOR_DRIVER_VERSION                   0x00010116
00114 #define OID_GEN_XMIT_OK                                                 0x00020101
00115 #define OID_GEN_RCV_OK                                                  0x00020102
00116 #define OID_GEN_XMIT_ERROR                                              0x00020103
00117 #define OID_GEN_RCV_ERROR                                               0x00020104
00118 #define OID_GEN_RCV_NO_BUFFER                                   0x00020105
00119 #define OID_GEN_DIRECTED_BYTES_XMIT                             0x00020201
00120 #define OID_GEN_DIRECTED_FRAMES_XMIT                    0x00020202
00121 #define OID_GEN_MULTICAST_BYTES_XMIT                    0x00020203
00122 #define OID_GEN_MULTICAST_FRAMES_XMIT                   0x00020204
00123 #define OID_GEN_BROADCAST_BYTES_XMIT                    0x00020205
00124 #define OID_GEN_BROADCAST_FRAMES_XMIT                   0x00020206
00125 #define OID_GEN_DIRECTED_BYTES_RCV                              0x00020207
00126 #define OID_GEN_DIRECTED_FRAMES_RCV                             0x00020208
00127 #define OID_GEN_MULTICAST_BYTES_RCV                             0x00020209
00128 #define OID_GEN_MULTICAST_FRAMES_RCV                    0x0002020A
00129 #define OID_GEN_BROADCAST_BYTES_RCV                             0x0002020B
00130 #define OID_GEN_BROADCAST_FRAMES_RCV                    0x0002020C
00131 #define OID_GEN_RCV_CRC_ERROR                                   0x0002020D
00132 #define OID_GEN_TRANSMIT_QUEUE_LENGTH                   0x0002020E
00133 #define OID_GEN_GET_TIME_CAPS                                   0x0002020F
00134 #define OID_GEN_GET_NETCARD_TIME                                0x00020210
00135 //
00136 //      These are connection-oriented general OIDs.
00137 //      These replace the above OIDs for connection-oriented media.
00138 //
00139 #define OID_GEN_CO_SUPPORTED_LIST                               0x00010101
00140 #define OID_GEN_CO_HARDWARE_STATUS                              0x00010102
00141 #define OID_GEN_CO_MEDIA_SUPPORTED                              0x00010103
00142 #define OID_GEN_CO_MEDIA_IN_USE                                 0x00010104
00143 #define OID_GEN_CO_LINK_SPEED                                   0x00010105
00144 #define OID_GEN_CO_VENDOR_ID                                    0x00010106
00145 #define OID_GEN_CO_VENDOR_DESCRIPTION                   0x00010107
00146 #define OID_GEN_CO_DRIVER_VERSION                               0x00010108
00147 #define OID_GEN_CO_PROTOCOL_OPTIONS                             0x00010109
00148 #define OID_GEN_CO_MAC_OPTIONS                                  0x0001010A
00149 #define OID_GEN_CO_MEDIA_CONNECT_STATUS                 0x0001010B
00150 #define OID_GEN_CO_VENDOR_DRIVER_VERSION                0x0001010C
00151 #define OID_GEN_CO_MINIMUM_LINK_SPEED                   0x0001010D
00152 #define OID_GEN_CO_GET_TIME_CAPS                                0x00010201
00153 #define OID_GEN_CO_GET_NETCARD_TIME                             0x00010202
00154 //
00155 //      These are connection-oriented statistics OIDs.
00156 //
00157 #define OID_GEN_CO_XMIT_PDUS_OK                                 0x00020101
00158 #define OID_GEN_CO_RCV_PDUS_OK                                  0x00020102
00159 #define OID_GEN_CO_XMIT_PDUS_ERROR                              0x00020103
00160 #define OID_GEN_CO_RCV_PDUS_ERROR                               0x00020104
00161 #define OID_GEN_CO_RCV_PDUS_NO_BUFFER                   0x00020105
00162 #define OID_GEN_CO_RCV_CRC_ERROR                                0x00020201
00163 #define OID_GEN_CO_TRANSMIT_QUEUE_LENGTH                0x00020202
00164 #define OID_GEN_CO_BYTES_XMIT                                   0x00020203
00165 #define OID_GEN_CO_BYTES_RCV                                    0x00020204
00166 #define OID_GEN_CO_BYTES_XMIT_OUTSTANDING               0x00020205
00167 #define OID_GEN_CO_NETCARD_LOAD                                 0x00020206
00168 //
00169 // These are objects for Connection-oriented media call-managers and are not
00170 // valid for ndis drivers. Under construction.
00171 //
00172 #define OID_CO_ADD_PVC                                                  0xFF000001
00173 #define OID_CO_DELETE_PVC                                               0xFF000002
00174 #define OID_CO_GET_CALL_INFORMATION                             0xFF000003
00175 #define OID_CO_ADD_ADDRESS                                              0xFF000004
00176 #define OID_CO_DELETE_ADDRESS                                   0xFF000005
00177 #define OID_CO_GET_ADDRESSES                                    0xFF000006
00178 #define OID_CO_ADDRESS_CHANGE                                   0xFF000007
00179 #define OID_CO_SIGNALING_ENABLED                                0xFF000008
00180 #define OID_CO_SIGNALING_DISABLED                               0xFF000009
00181 //
00182 // 802.3 Objects (Ethernet)
00183 //
00184 #define OID_802_3_PERMANENT_ADDRESS                             0x01010101
00185 #define OID_802_3_CURRENT_ADDRESS                               0x01010102
00186 #define OID_802_3_MULTICAST_LIST                                0x01010103
00187 #define OID_802_3_MAXIMUM_LIST_SIZE                             0x01010104
00188 #define OID_802_3_MAC_OPTIONS                                   0x01010105
00189 //
00190 //
00191 #define NDIS_802_3_MAC_OPTION_PRIORITY                  0x00000001
00192 #define OID_802_3_RCV_ERROR_ALIGNMENT                   0x01020101
00193 #define OID_802_3_XMIT_ONE_COLLISION                    0x01020102
00194 #define OID_802_3_XMIT_MORE_COLLISIONS                  0x01020103
00195 #define OID_802_3_XMIT_DEFERRED                                 0x01020201
00196 #define OID_802_3_XMIT_MAX_COLLISIONS                   0x01020202
00197 #define OID_802_3_RCV_OVERRUN                                   0x01020203
00198 #define OID_802_3_XMIT_UNDERRUN                                 0x01020204
00199 #define OID_802_3_XMIT_HEARTBEAT_FAILURE                0x01020205
00200 #define OID_802_3_XMIT_TIMES_CRS_LOST                   0x01020206
00201 #define OID_802_3_XMIT_LATE_COLLISIONS                  0x01020207
00202 //
00203 // 802.5 Objects (Token-Ring)
00204 //
00205 #define OID_802_5_PERMANENT_ADDRESS                             0x02010101
00206 #define OID_802_5_CURRENT_ADDRESS                               0x02010102
00207 #define OID_802_5_CURRENT_FUNCTIONAL                    0x02010103
00208 #define OID_802_5_CURRENT_GROUP                                 0x02010104
00209 #define OID_802_5_LAST_OPEN_STATUS                              0x02010105
00210 #define OID_802_5_CURRENT_RING_STATUS                   0x02010106
00211 #define OID_802_5_CURRENT_RING_STATE                    0x02010107
00212 #define OID_802_5_LINE_ERRORS                                   0x02020101
00213 #define OID_802_5_LOST_FRAMES                                   0x02020102
00214 #define OID_802_5_BURST_ERRORS                                  0x02020201
00215 #define OID_802_5_AC_ERRORS                                             0x02020202
00216 #define OID_802_5_ABORT_DELIMETERS                              0x02020203
00217 #define OID_802_5_FRAME_COPIED_ERRORS                   0x02020204
00218 #define OID_802_5_FREQUENCY_ERRORS                              0x02020205
00219 #define OID_802_5_TOKEN_ERRORS                                  0x02020206
00220 #define OID_802_5_INTERNAL_ERRORS                               0x02020207
00221 //
00222 // FDDI Objects
00223 //
00224 #define OID_FDDI_LONG_PERMANENT_ADDR                    0x03010101
00225 #define OID_FDDI_LONG_CURRENT_ADDR                              0x03010102
00226 #define OID_FDDI_LONG_MULTICAST_LIST                    0x03010103
00227 #define OID_FDDI_LONG_MAX_LIST_SIZE                             0x03010104
00228 #define OID_FDDI_SHORT_PERMANENT_ADDR                   0x03010105
00229 #define OID_FDDI_SHORT_CURRENT_ADDR                             0x03010106
00230 #define OID_FDDI_SHORT_MULTICAST_LIST                   0x03010107
00231 #define OID_FDDI_SHORT_MAX_LIST_SIZE                    0x03010108
00232 #define OID_FDDI_ATTACHMENT_TYPE                                0x03020101
00233 #define OID_FDDI_UPSTREAM_NODE_LONG                             0x03020102
00234 #define OID_FDDI_DOWNSTREAM_NODE_LONG                   0x03020103
00235 #define OID_FDDI_FRAME_ERRORS                                   0x03020104
00236 #define OID_FDDI_FRAMES_LOST                                    0x03020105
00237 #define OID_FDDI_RING_MGT_STATE                                 0x03020106
00238 #define OID_FDDI_LCT_FAILURES                                   0x03020107
00239 #define OID_FDDI_LEM_REJECTS                                    0x03020108
00240 #define OID_FDDI_LCONNECTION_STATE                              0x03020109
00241 #define OID_FDDI_SMT_STATION_ID                                 0x03030201
00242 #define OID_FDDI_SMT_OP_VERSION_ID                              0x03030202
00243 #define OID_FDDI_SMT_HI_VERSION_ID                              0x03030203
00244 #define OID_FDDI_SMT_LO_VERSION_ID                              0x03030204
00245 #define OID_FDDI_SMT_MANUFACTURER_DATA                  0x03030205
00246 #define OID_FDDI_SMT_USER_DATA                                  0x03030206
00247 #define OID_FDDI_SMT_MIB_VERSION_ID                             0x03030207
00248 #define OID_FDDI_SMT_MAC_CT                                             0x03030208
00249 #define OID_FDDI_SMT_NON_MASTER_CT                              0x03030209
00250 #define OID_FDDI_SMT_MASTER_CT                                  0x0303020A
00251 #define OID_FDDI_SMT_AVAILABLE_PATHS                    0x0303020B
00252 #define OID_FDDI_SMT_CONFIG_CAPABILITIES                0x0303020C
00253 #define OID_FDDI_SMT_CONFIG_POLICY                              0x0303020D
00254 #define OID_FDDI_SMT_CONNECTION_POLICY                  0x0303020E
00255 #define OID_FDDI_SMT_T_NOTIFY                                   0x0303020F
00256 #define OID_FDDI_SMT_STAT_RPT_POLICY                    0x03030210
00257 #define OID_FDDI_SMT_TRACE_MAX_EXPIRATION       0x03030211
00258 #define OID_FDDI_SMT_PORT_INDEXES                               0x03030212
00259 #define OID_FDDI_SMT_MAC_INDEXES                                0x03030213
00260 #define OID_FDDI_SMT_BYPASS_PRESENT                             0x03030214
00261 #define OID_FDDI_SMT_ECM_STATE                                  0x03030215
00262 #define OID_FDDI_SMT_CF_STATE                                   0x03030216
00263 #define OID_FDDI_SMT_HOLD_STATE                                 0x03030217
00264 #define OID_FDDI_SMT_REMOTE_DISCONNECT_FLAG     0x03030218
00265 #define OID_FDDI_SMT_STATION_STATUS                             0x03030219
00266 #define OID_FDDI_SMT_PEER_WRAP_FLAG                             0x0303021A
00267 #define OID_FDDI_SMT_MSG_TIME_STAMP                             0x0303021B
00268 #define OID_FDDI_SMT_TRANSITION_TIME_STAMP      0x0303021C
00269 #define OID_FDDI_SMT_SET_COUNT                                  0x0303021D
00270 #define OID_FDDI_SMT_LAST_SET_STATION_ID                0x0303021E
00271 #define OID_FDDI_MAC_FRAME_STATUS_FUNCTIONS     0x0303021F
00272 #define OID_FDDI_MAC_BRIDGE_FUNCTIONS                   0x03030220
00273 #define OID_FDDI_MAC_T_MAX_CAPABILITY                   0x03030221
00274 #define OID_FDDI_MAC_TVX_CAPABILITY                             0x03030222
00275 #define OID_FDDI_MAC_AVAILABLE_PATHS                    0x03030223
00276 #define OID_FDDI_MAC_CURRENT_PATH                               0x03030224
00277 #define OID_FDDI_MAC_UPSTREAM_NBR                               0x03030225
00278 #define OID_FDDI_MAC_DOWNSTREAM_NBR                             0x03030226
00279 #define OID_FDDI_MAC_OLD_UPSTREAM_NBR                   0x03030227
00280 #define OID_FDDI_MAC_OLD_DOWNSTREAM_NBR                 0x03030228
00281 #define OID_FDDI_MAC_DUP_ADDRESS_TEST                   0x03030229
00282 #define OID_FDDI_MAC_REQUESTED_PATHS                    0x0303022A
00283 #define OID_FDDI_MAC_DOWNSTREAM_PORT_TYPE       0x0303022B
00284 #define OID_FDDI_MAC_INDEX                                              0x0303022C
00285 #define OID_FDDI_MAC_SMT_ADDRESS                                0x0303022D
00286 #define OID_FDDI_MAC_LONG_GRP_ADDRESS                   0x0303022E
00287 #define OID_FDDI_MAC_SHORT_GRP_ADDRESS                  0x0303022F
00288 #define OID_FDDI_MAC_T_REQ                                              0x03030230
00289 #define OID_FDDI_MAC_T_NEG                                              0x03030231
00290 #define OID_FDDI_MAC_T_MAX                                              0x03030232
00291 #define OID_FDDI_MAC_TVX_VALUE                                  0x03030233
00292 #define OID_FDDI_MAC_T_PRI0                                             0x03030234
00293 #define OID_FDDI_MAC_T_PRI1                                             0x03030235
00294 #define OID_FDDI_MAC_T_PRI2                                             0x03030236
00295 #define OID_FDDI_MAC_T_PRI3                                             0x03030237
00296 #define OID_FDDI_MAC_T_PRI4                                             0x03030238
00297 #define OID_FDDI_MAC_T_PRI5                                             0x03030239
00298 #define OID_FDDI_MAC_T_PRI6                                             0x0303023A
00299 #define OID_FDDI_MAC_FRAME_CT                                   0x0303023B
00300 #define OID_FDDI_MAC_COPIED_CT                                  0x0303023C
00301 #define OID_FDDI_MAC_TRANSMIT_CT                                0x0303023D
00302 #define OID_FDDI_MAC_TOKEN_CT                                   0x0303023E
00303 #define OID_FDDI_MAC_ERROR_CT                                   0x0303023F
00304 #define OID_FDDI_MAC_LOST_CT                                    0x03030240
00305 #define OID_FDDI_MAC_TVX_EXPIRED_CT                             0x03030241
00306 #define OID_FDDI_MAC_NOT_COPIED_CT                              0x03030242
00307 #define OID_FDDI_MAC_LATE_CT                                    0x03030243
00308 #define OID_FDDI_MAC_RING_OP_CT                                 0x03030244
00309 #define OID_FDDI_MAC_FRAME_ERROR_THRESHOLD      0x03030245
00310 #define OID_FDDI_MAC_FRAME_ERROR_RATIO                  0x03030246
00311 #define OID_FDDI_MAC_NOT_COPIED_THRESHOLD       0x03030247
00312 #define OID_FDDI_MAC_NOT_COPIED_RATIO                   0x03030248
00313 #define OID_FDDI_MAC_RMT_STATE                                  0x03030249
00314 #define OID_FDDI_MAC_DA_FLAG                                    0x0303024A
00315 #define OID_FDDI_MAC_UNDA_FLAG                                  0x0303024B
00316 #define OID_FDDI_MAC_FRAME_ERROR_FLAG                   0x0303024C
00317 #define OID_FDDI_MAC_NOT_COPIED_FLAG                    0x0303024D
00318 #define OID_FDDI_MAC_MA_UNITDATA_AVAILABLE      0x0303024E
00319 #define OID_FDDI_MAC_HARDWARE_PRESENT                   0x0303024F
00320 #define OID_FDDI_MAC_MA_UNITDATA_ENABLE                 0x03030250
00321 #define OID_FDDI_PATH_INDEX                                             0x03030251
00322 #define OID_FDDI_PATH_RING_LATENCY                              0x03030252
00323 #define OID_FDDI_PATH_TRACE_STATUS                              0x03030253
00324 #define OID_FDDI_PATH_SBA_PAYLOAD                               0x03030254
00325 #define OID_FDDI_PATH_SBA_OVERHEAD                              0x03030255
00326 #define OID_FDDI_PATH_CONFIGURATION                             0x03030256
00327 #define OID_FDDI_PATH_T_R_MODE                                  0x03030257
00328 #define OID_FDDI_PATH_SBA_AVAILABLE                             0x03030258
00329 #define OID_FDDI_PATH_TVX_LOWER_BOUND                   0x03030259
00330 #define OID_FDDI_PATH_T_MAX_LOWER_BOUND                 0x0303025A
00331 #define OID_FDDI_PATH_MAX_T_REQ                                 0x0303025B
00332 #define OID_FDDI_PORT_MY_TYPE                                   0x0303025C
00333 #define OID_FDDI_PORT_NEIGHBOR_TYPE                             0x0303025D
00334 #define OID_FDDI_PORT_CONNECTION_POLICIES       0x0303025E
00335 #define OID_FDDI_PORT_MAC_INDICATED                             0x0303025F
00336 #define OID_FDDI_PORT_CURRENT_PATH                              0x03030260
00337 #define OID_FDDI_PORT_REQUESTED_PATHS                   0x03030261
00338 #define OID_FDDI_PORT_MAC_PLACEMENT                             0x03030262
00339 #define OID_FDDI_PORT_AVAILABLE_PATHS                   0x03030263
00340 #define OID_FDDI_PORT_MAC_LOOP_TIME                             0x03030264
00341 #define OID_FDDI_PORT_PMD_CLASS                                 0x03030265
00342 #define OID_FDDI_PORT_CONNECTION_CAPABILITIES   0x03030266
00343 #define OID_FDDI_PORT_INDEX                                             0x03030267
00344 #define OID_FDDI_PORT_MAINT_LS                                  0x03030268
00345 #define OID_FDDI_PORT_BS_FLAG                                   0x03030269
00346 #define OID_FDDI_PORT_PC_LS                                             0x0303026A
00347 #define OID_FDDI_PORT_EB_ERROR_CT                               0x0303026B
00348 #define OID_FDDI_PORT_LCT_FAIL_CT                               0x0303026C
00349 #define OID_FDDI_PORT_LER_ESTIMATE                              0x0303026D
00350 #define OID_FDDI_PORT_LEM_REJECT_CT                             0x0303026E
00351 #define OID_FDDI_PORT_LEM_CT                                    0x0303026F
00352 #define OID_FDDI_PORT_LER_CUTOFF                                0x03030270
00353 #define OID_FDDI_PORT_LER_ALARM                                 0x03030271
00354 #define OID_FDDI_PORT_CONNNECT_STATE                    0x03030272
00355 #define OID_FDDI_PORT_PCM_STATE                                 0x03030273
00356 #define OID_FDDI_PORT_PC_WITHHOLD                               0x03030274
00357 #define OID_FDDI_PORT_LER_FLAG                                  0x03030275
00358 #define OID_FDDI_PORT_HARDWARE_PRESENT                  0x03030276
00359 #define OID_FDDI_SMT_STATION_ACTION                             0x03030277
00360 #define OID_FDDI_PORT_ACTION                                    0x03030278
00361 #define OID_FDDI_IF_DESCR                                               0x03030279
00362 #define OID_FDDI_IF_TYPE                                                0x0303027A
00363 #define OID_FDDI_IF_MTU                                                 0x0303027B
00364 #define OID_FDDI_IF_SPEED                                               0x0303027C
00365 #define OID_FDDI_IF_PHYS_ADDRESS                                0x0303027D
00366 #define OID_FDDI_IF_ADMIN_STATUS                                0x0303027E
00367 #define OID_FDDI_IF_OPER_STATUS                                 0x0303027F
00368 #define OID_FDDI_IF_LAST_CHANGE                                 0x03030280
00369 #define OID_FDDI_IF_IN_OCTETS                                   0x03030281
00370 #define OID_FDDI_IF_IN_UCAST_PKTS                               0x03030282
00371 #define OID_FDDI_IF_IN_NUCAST_PKTS                              0x03030283
00372 #define OID_FDDI_IF_IN_DISCARDS                                 0x03030284
00373 #define OID_FDDI_IF_IN_ERRORS                                   0x03030285
00374 #define OID_FDDI_IF_IN_UNKNOWN_PROTOS                   0x03030286
00375 #define OID_FDDI_IF_OUT_OCTETS                                  0x03030287
00376 #define OID_FDDI_IF_OUT_UCAST_PKTS                              0x03030288
00377 #define OID_FDDI_IF_OUT_NUCAST_PKTS                             0x03030289
00378 #define OID_FDDI_IF_OUT_DISCARDS                                0x0303028A
00379 #define OID_FDDI_IF_OUT_ERRORS                                  0x0303028B
00380 #define OID_FDDI_IF_OUT_QLEN                                    0x0303028C
00381 #define OID_FDDI_IF_SPECIFIC                                    0x0303028D
00382 //
00383 // WAN objects
00384 //
00385 #define OID_WAN_PERMANENT_ADDRESS                               0x04010101
00386 #define OID_WAN_CURRENT_ADDRESS                                 0x04010102
00387 #define OID_WAN_QUALITY_OF_SERVICE                              0x04010103
00388 #define OID_WAN_PROTOCOL_TYPE                                   0x04010104
00389 #define OID_WAN_MEDIUM_SUBTYPE                                  0x04010105
00390 #define OID_WAN_HEADER_FORMAT                                   0x04010106
00391 #define OID_WAN_GET_INFO                                                0x04010107
00392 #define OID_WAN_SET_LINK_INFO                                   0x04010108
00393 #define OID_WAN_GET_LINK_INFO                                   0x04010109
00394 #define OID_WAN_LINE_COUNT                                              0x0401010A
00395 #define OID_WAN_GET_BRIDGE_INFO                                 0x0401020A
00396 #define OID_WAN_SET_BRIDGE_INFO                                 0x0401020B
00397 #define OID_WAN_GET_COMP_INFO                                   0x0401020C
00398 #define OID_WAN_SET_COMP_INFO                                   0x0401020D
00399 #define OID_WAN_GET_STATS_INFO                                  0x0401020E
00400 //
00401 // LocalTalk objects
00402 //
00403 #define OID_LTALK_CURRENT_NODE_ID                               0x05010102
00404 #define OID_LTALK_IN_BROADCASTS                                 0x05020101
00405 #define OID_LTALK_IN_LENGTH_ERRORS                              0x05020102
00406 #define OID_LTALK_OUT_NO_HANDLERS                               0x05020201
00407 #define OID_LTALK_COLLISIONS                                    0x05020202
00408 #define OID_LTALK_DEFERS                                                0x05020203
00409 #define OID_LTALK_NO_DATA_ERRORS                                0x05020204
00410 #define OID_LTALK_RANDOM_CTS_ERRORS                             0x05020205
00411 #define OID_LTALK_FCS_ERRORS                                    0x05020206
00412 //
00413 // Arcnet objects
00414 //
00415 #define OID_ARCNET_PERMANENT_ADDRESS                    0x06010101
00416 #define OID_ARCNET_CURRENT_ADDRESS                              0x06010102
00417 #define OID_ARCNET_RECONFIGURATIONS                             0x06020201
00418 //
00419 // TAPI objects
00420 //
00421 #define OID_TAPI_ACCEPT                                                 0x07030101
00422 #define OID_TAPI_ANSWER                                                 0x07030102
00423 #define OID_TAPI_CLOSE                                                  0x07030103
00424 #define OID_TAPI_CLOSE_CALL                                             0x07030104
00425 #define OID_TAPI_CONDITIONAL_MEDIA_DETECTION    0x07030105
00426 #define OID_TAPI_CONFIG_DIALOG                                  0x07030106
00427 #define OID_TAPI_DEV_SPECIFIC                                   0x07030107
00428 #define OID_TAPI_DIAL                                                   0x07030108
00429 #define OID_TAPI_DROP                                                   0x07030109
00430 #define OID_TAPI_GET_ADDRESS_CAPS                               0x0703010A
00431 #define OID_TAPI_GET_ADDRESS_ID                                 0x0703010B
00432 #define OID_TAPI_GET_ADDRESS_STATUS                             0x0703010C
00433 #define OID_TAPI_GET_CALL_ADDRESS_ID                    0x0703010D
00434 #define OID_TAPI_GET_CALL_INFO                                  0x0703010E
00435 #define OID_TAPI_GET_CALL_STATUS                                0x0703010F
00436 #define OID_TAPI_GET_DEV_CAPS                                   0x07030110
00437 #define OID_TAPI_GET_DEV_CONFIG                                 0x07030111
00438 #define OID_TAPI_GET_EXTENSION_ID                               0x07030112
00439 #define OID_TAPI_GET_ID                                                 0x07030113
00440 #define OID_TAPI_GET_LINE_DEV_STATUS                    0x07030114
00441 #define OID_TAPI_MAKE_CALL                                              0x07030115
00442 #define OID_TAPI_NEGOTIATE_EXT_VERSION                  0x07030116
00443 #define OID_TAPI_OPEN                                                   0x07030117
00444 #define OID_TAPI_PROVIDER_INITIALIZE                    0x07030118
00445 #define OID_TAPI_PROVIDER_SHUTDOWN                              0x07030119
00446 #define OID_TAPI_SECURE_CALL                                    0x0703011A
00447 #define OID_TAPI_SELECT_EXT_VERSION                             0x0703011B
00448 #define OID_TAPI_SEND_USER_USER_INFO                    0x0703011C
00449 #define OID_TAPI_SET_APP_SPECIFIC                               0x0703011D
00450 #define OID_TAPI_SET_CALL_PARAMS                                0x0703011E
00451 #define OID_TAPI_SET_DEFAULT_MEDIA_DETECTION    0x0703011F
00452 #define OID_TAPI_SET_DEV_CONFIG                                 0x07030120
00453 #define OID_TAPI_SET_MEDIA_MODE                                 0x07030121
00454 #define OID_TAPI_SET_STATUS_MESSAGES                    0x07030122
00455 //
00456 // ATM Connection Oriented Ndis
00457 //
00458 #define OID_ATM_SUPPORTED_VC_RATES                              0x08010101
00459 #define OID_ATM_SUPPORTED_SERVICE_CATEGORY              0x08010102
00460 #define OID_ATM_SUPPORTED_AAL_TYPES                             0x08010103
00461 #define OID_ATM_HW_CURRENT_ADDRESS                              0x08010104
00462 #define OID_ATM_MAX_ACTIVE_VCS                                  0x08010105
00463 #define OID_ATM_MAX_ACTIVE_VCI_BITS                             0x08010106
00464 #define OID_ATM_MAX_ACTIVE_VPI_BITS                             0x08010107
00465 #define OID_ATM_MAX_AAL0_PACKET_SIZE                    0x08010108
00466 #define OID_ATM_MAX_AAL1_PACKET_SIZE                    0x08010109
00467 #define OID_ATM_MAX_AAL34_PACKET_SIZE                   0x0801010A
00468 #define OID_ATM_MAX_AAL5_PACKET_SIZE                    0x0801010B
00469 #define OID_ATM_SIGNALING_VPIVCI                                0x08010201
00470 #define OID_ATM_ASSIGNED_VPI                                    0x08010202
00471 #define OID_ATM_ACQUIRE_ACCESS_NET_RESOURCES    0x08010203
00472 #define OID_ATM_RELEASE_ACCESS_NET_RESOURCES    0x08010204
00473 #define OID_ATM_ILMI_VPIVCI                                             0x08010205
00474 #define OID_ATM_DIGITAL_BROADCAST_VPIVCI                0x08010206
00475 #define OID_ATM_GET_NEAREST_FLOW                                0x08010207
00476 #define OID_ATM_ALIGNMENT_REQUIRED                              0x08010208
00477 //
00478 //      ATM specific statistics OIDs.
00479 //
00480 #define OID_ATM_RCV_CELLS_OK                                    0x08020101
00481 #define OID_ATM_XMIT_CELLS_OK                                   0x08020102
00482 #define OID_ATM_RCV_CELLS_DROPPED                               0x08020103
00483 #define OID_ATM_RCV_INVALID_VPI_VCI                             0x08020201
00484 #define OID_ATM_CELLS_HEC_ERROR                                 0x08020202
00485 #define OID_ATM_RCV_REASSEMBLY_ERROR                    0x08020203
00486 //
00487 // PCCA (Wireless) object
00488 //
00489 //
00490 // All WirelessWAN devices must support the following OIDs
00491 //
00492 #define OID_WW_GEN_NETWORK_TYPES_SUPPORTED              0x09010101
00493 #define OID_WW_GEN_NETWORK_TYPE_IN_USE                  0x09010102
00494 #define OID_WW_GEN_HEADER_FORMATS_SUPPORTED             0x09010103
00495 #define OID_WW_GEN_HEADER_FORMAT_IN_USE                 0x09010104
00496 #define OID_WW_GEN_INDICATION_REQUEST                   0x09010105
00497 #define OID_WW_GEN_DEVICE_INFO                                  0x09010106
00498 #define OID_WW_GEN_OPERATION_MODE                               0x09010107
00499 #define OID_WW_GEN_LOCK_STATUS                                  0x09010108
00500 #define OID_WW_GEN_DISABLE_TRANSMITTER                  0x09010109
00501 #define OID_WW_GEN_NETWORK_ID                                   0x0901010A
00502 #define OID_WW_GEN_PERMANENT_ADDRESS                    0x0901010B
00503 #define OID_WW_GEN_CURRENT_ADDRESS                              0x0901010C
00504 #define OID_WW_GEN_SUSPEND_DRIVER                               0x0901010D
00505 #define OID_WW_GEN_BASESTATION_ID                               0x0901010E
00506 #define OID_WW_GEN_CHANNEL_ID                                   0x0901010F
00507 #define OID_WW_GEN_ENCRYPTION_SUPPORTED                 0x09010110
00508 #define OID_WW_GEN_ENCRYPTION_IN_USE                    0x09010111
00509 #define OID_WW_GEN_ENCRYPTION_STATE                             0x09010112
00510 #define OID_WW_GEN_CHANNEL_QUALITY                              0x09010113
00511 #define OID_WW_GEN_REGISTRATION_STATUS                  0x09010114
00512 #define OID_WW_GEN_RADIO_LINK_SPEED                             0x09010115
00513 #define OID_WW_GEN_LATENCY                                              0x09010116
00514 #define OID_WW_GEN_BATTERY_LEVEL                                0x09010117
00515 #define OID_WW_GEN_EXTERNAL_POWER                               0x09010118
00516 //
00517 // Network Dependent OIDs - Mobitex:
00518 //
00519 #define OID_WW_MBX_SUBADDR                                              0x09050101
00520 // OID 0x09050102 is reserved and may not be used
00521 #define OID_WW_MBX_FLEXLIST                                             0x09050103
00522 #define OID_WW_MBX_GROUPLIST                                    0x09050104
00523 #define OID_WW_MBX_TRAFFIC_AREA                                 0x09050105
00524 #define OID_WW_MBX_LIVE_DIE                                             0x09050106
00525 #define OID_WW_MBX_TEMP_DEFAULTLIST                             0x09050107
00526 //
00527 // Network Dependent OIDs - Pinpoint:
00528 //
00529 #define OID_WW_PIN_LOC_AUTHORIZE                                0x09090101
00530 #define OID_WW_PIN_LAST_LOCATION                                0x09090102
00531 #define OID_WW_PIN_LOC_FIX                                              0x09090103
00532 //
00533 // Network Dependent - CDPD:
00534 //
00535 #define OID_WW_CDPD_SPNI                                                0x090D0101
00536 #define OID_WW_CDPD_WASI                                                0x090D0102
00537 #define OID_WW_CDPD_AREA_COLOR                                  0x090D0103
00538 #define OID_WW_CDPD_TX_POWER_LEVEL                              0x090D0104
00539 #define OID_WW_CDPD_EID                                                 0x090D0105
00540 #define OID_WW_CDPD_HEADER_COMPRESSION                  0x090D0106
00541 #define OID_WW_CDPD_DATA_COMPRESSION                    0x090D0107
00542 #define OID_WW_CDPD_CHANNEL_SELECT                              0x090D0108
00543 #define OID_WW_CDPD_CHANNEL_STATE                               0x090D0109
00544 #define OID_WW_CDPD_NEI                                                 0x090D010A
00545 #define OID_WW_CDPD_NEI_STATE                                   0x090D010B
00546 #define OID_WW_CDPD_SERVICE_PROVIDER_IDENTIFIER 0x090D010C
00547 #define OID_WW_CDPD_SLEEP_MODE                                  0x090D010D
00548 #define OID_WW_CDPD_CIRCUIT_SWITCHED                    0x090D010E
00549 #define OID_WW_CDPD_TEI                                                 0x090D010F
00550 #define OID_WW_CDPD_RSSI                                                0x090D0110
00551 //
00552 // Network Dependent - Ardis:
00553 //
00554 #define OID_WW_ARD_SNDCP                                                0x09110101
00555 #define OID_WW_ARD_TMLY_MSG                                             0x09110102
00556 #define OID_WW_ARD_DATAGRAM                                             0x09110103
00557 //
00558 // Network Dependent - DataTac:
00559 //
00560 #define OID_WW_TAC_COMPRESSION                                  0x09150101
00561 #define OID_WW_TAC_SET_CONFIG                                   0x09150102
00562 #define OID_WW_TAC_GET_STATUS                                   0x09150103
00563 #define OID_WW_TAC_USER_HEADER                                  0x09150104
00564 //
00565 // Network Dependent - Metricom:
00566 //
00567 #define OID_WW_MET_FUNCTION                                             0x09190101
00568 //
00569 // IRDA objects
00570 //
00571 #define OID_IRDA_RECEIVING                                              0x0A010100
00572 #define OID_IRDA_TURNAROUND_TIME                                0x0A010101
00573 #define OID_IRDA_SUPPORTED_SPEEDS                               0x0A010102
00574 #define OID_IRDA_LINK_SPEED                                             0x0A010103
00575 #define OID_IRDA_MEDIA_BUSY                                             0x0A010104
00576 #define OID_IRDA_EXTRA_RCV_BOFS                                 0x0A010200
00577 #define OID_IRDA_RATE_SNIFF                                             0x0A010201
00578 #define OID_IRDA_UNICAST_LIST                                   0x0A010202
00579 #define OID_IRDA_MAX_UNICAST_LIST_SIZE                  0x0A010203
00580 #define OID_IRDA_MAX_RECEIVE_WINDOW_SIZE                0x0A010204
00581 #define OID_IRDA_MAX_SEND_WINDOW_SIZE                   0x0A010205
00582 //
00583 // Medium the Ndis Driver is running on (OID_GEN_MEDIA_SUPPORTED/
00584 // OID_GEN_MEDIA_IN_USE).
00585 //
00586 typedef enum _NDIS_MEDIUM {
00587     NdisMedium802_3,
00588     NdisMedium802_5,
00589     NdisMediumFddi,
00590     NdisMediumWan,
00591     NdisMediumLocalTalk,
00592     NdisMediumDix,              // defined for convenience, not a real medium
00593      NdisMediumArcnetRaw,
00594     NdisMediumArcnet878_2,
00595     NdisMediumAtm,
00596     NdisMediumWirelessWan,
00597     NdisMediumIrda,
00598     NdisMediumMax               // Not a real medium, defined as an upper-bound
00599 } NDIS_MEDIUM, *PNDIS_MEDIUM;
00600 
00601 //
00602 // Hardware status codes (OID_GEN_HARDWARE_STATUS).
00603 //
00604 typedef enum _NDIS_HARDWARE_STATUS {
00605     NdisHardwareStatusReady,
00606     NdisHardwareStatusInitializing,
00607     NdisHardwareStatusReset,
00608     NdisHardwareStatusClosing,
00609     NdisHardwareStatusNotReady
00610 } NDIS_HARDWARE_STATUS, *PNDIS_HARDWARE_STATUS;
00611 
00612 //
00613 // this is the type passed in the OID_GEN_GET_TIME_CAPS request
00614 //
00615 typedef struct _GEN_GET_TIME_CAPS {
00616     ULONG Flags;                // Bits defined below
00617 
00618     ULONG ClockPrecision;
00619 } GEN_GET_TIME_CAPS, *PGEN_GET_TIME_CAPS;
00620 
00621 #define READABLE_LOCAL_CLOCK                                    0x000000001
00622 #define CLOCK_NETWORK_DERIVED                                   0x000000002
00623 #define CLOCK_PRECISION                                                 0x000000004
00624 #define RECEIVE_TIME_INDICATION_CAPABLE                 0x000000008
00625 #define TIMED_SEND_CAPABLE                                              0x000000010
00626 #define TIME_STAMP_CAPABLE                                              0x000000020
00627 //
00628 //
00629 // this is the type passed in the OID_GEN_GET_NETCARD_TIME request
00630 //
00631 typedef struct _GEN_GET_NETCARD_TIME {
00632     ULONG ReadTime;
00633 } GEN_GET_NETCARD_TIME, *PGEN_GET_NETCARD_TIME;
00634 
00635 //
00636 // Defines the attachment types for FDDI (OID_FDDI_ATTACHMENT_TYPE).
00637 //
00638 typedef enum _NDIS_FDDI_ATTACHMENT_TYPE {
00639     NdisFddiTypeIsolated = 1,
00640     NdisFddiTypeLocalA,
00641     NdisFddiTypeLocalB,
00642     NdisFddiTypeLocalAB,
00643     NdisFddiTypeLocalS,
00644     NdisFddiTypeWrapA,
00645     NdisFddiTypeWrapB,
00646     NdisFddiTypeWrapAB,
00647     NdisFddiTypeWrapS,
00648     NdisFddiTypeCWrapA,
00649     NdisFddiTypeCWrapB,
00650     NdisFddiTypeCWrapS,
00651     NdisFddiTypeThrough
00652 } NDIS_FDDI_ATTACHMENT_TYPE, *PNDIS_FDDI_ATTACHMENT_TYPE;
00653 
00654 //
00655 // Defines the ring management states for FDDI (OID_FDDI_RING_MGT_STATE).
00656 //
00657 typedef enum _NDIS_FDDI_RING_MGT_STATE {
00658     NdisFddiRingIsolated = 1,
00659     NdisFddiRingNonOperational,
00660     NdisFddiRingOperational,
00661     NdisFddiRingDetect,
00662     NdisFddiRingNonOperationalDup,
00663     NdisFddiRingOperationalDup,
00664     NdisFddiRingDirected,
00665     NdisFddiRingTrace
00666 } NDIS_FDDI_RING_MGT_STATE, *PNDIS_FDDI_RING_MGT_STATE;
00667 
00668 //
00669 // Defines the Lconnection state for FDDI (OID_FDDI_LCONNECTION_STATE).
00670 //
00671 typedef enum _NDIS_FDDI_LCONNECTION_STATE {
00672     NdisFddiStateOff = 1,
00673     NdisFddiStateBreak,
00674     NdisFddiStateTrace,
00675     NdisFddiStateConnect,
00676     NdisFddiStateNext,
00677     NdisFddiStateSignal,
00678     NdisFddiStateJoin,
00679     NdisFddiStateVerify,
00680     NdisFddiStateActive,
00681     NdisFddiStateMaintenance
00682 } NDIS_FDDI_LCONNECTION_STATE, *PNDIS_FDDI_LCONNECTION_STATE;
00683 
00684 //
00685 // Defines the medium subtypes for WAN medium (OID_WAN_MEDIUM_SUBTYPE).
00686 //
00687 typedef enum _NDIS_WAN_MEDIUM_SUBTYPE {
00688     NdisWanMediumHub,
00689     NdisWanMediumX_25,
00690     NdisWanMediumIsdn,
00691     NdisWanMediumSerial,
00692     NdisWanMediumFrameRelay,
00693     NdisWanMediumAtm,
00694     NdisWanMediumSonet,
00695     NdisWanMediumSW56K
00696 } NDIS_WAN_MEDIUM_SUBTYPE, *PNDIS_WAN_MEDIUM_SUBTYPE;
00697 
00698 //
00699 // Defines the header format for WAN medium (OID_WAN_HEADER_FORMAT).
00700 //
00701 typedef enum _NDIS_WAN_HEADER_FORMAT {
00702     NdisWanHeaderNative,        // src/dest based on subtype, followed by NLPID
00703      NdisWanHeaderEthernet      // emulation of ethernet header
00704 } NDIS_WAN_HEADER_FORMAT, *PNDIS_WAN_HEADER_FORMAT;
00705 
00706 //
00707 // Defines the line quality on a WAN line (OID_WAN_QUALITY_OF_SERVICE).
00708 //
00709 typedef enum _NDIS_WAN_QUALITY {
00710     NdisWanRaw,
00711     NdisWanErrorControl,
00712     NdisWanReliable
00713 } NDIS_WAN_QUALITY, *PNDIS_WAN_QUALITY;
00714 
00715 //
00716 // Defines the state of a token-ring adapter (OID_802_5_CURRENT_RING_STATE).
00717 //
00718 typedef enum _NDIS_802_5_RING_STATE {
00719     NdisRingStateOpened = 1,
00720     NdisRingStateClosed,
00721     NdisRingStateOpening,
00722     NdisRingStateClosing,
00723     NdisRingStateOpenFailure,
00724     NdisRingStateRingFailure
00725 } NDIS_802_5_RING_STATE, *PNDIS_802_5_RING_STATE;
00726 
00727 //
00728 // Defines the state of the LAN media
00729 //
00730 typedef enum _NDIS_MEDIA_STATE {
00731     NdisMediaStateConnected,
00732     NdisMediaStateDisconnected
00733 } NDIS_MEDIA_STATE, *PNDIS_MEDIA_STATE;
00734 
00735 //
00736 // The following is set on a per-packet basis as OOB data with NdisClass802_3Priority
00737 //
00738 typedef ULONG Priority_802_3;   // 0-7 priority levels
00739 //
00740 //      The following structure is used to query OID_GEN_CO_LINK_SPEED and
00741 //      OID_GEN_CO_MINIMUM_LINK_SPEED.  The first OID will return the current
00742 //      link speed of the adapter.  The second will return the minimum link speed
00743 //      the adapter is capable of.
00744 //
00745 
00746 typedef struct _NDIS_CO_LINK_SPEED {
00747     ULONG Outbound;
00748     ULONG Inbound;
00749 } NDIS_CO_LINK_SPEED,
00750 
00751 *PNDIS_CO_LINK_SPEED;
00752 //
00753 // Ndis Packet Filter Bits (OID_GEN_CURRENT_PACKET_FILTER).
00754 //
00755 #define NDIS_PACKET_TYPE_DIRECTED                               0x0001
00756 #define NDIS_PACKET_TYPE_MULTICAST                              0x0002
00757 #define NDIS_PACKET_TYPE_ALL_MULTICAST                  0x0004
00758 #define NDIS_PACKET_TYPE_BROADCAST                              0x0008
00759 #define NDIS_PACKET_TYPE_SOURCE_ROUTING                 0x0010
00760 #define NDIS_PACKET_TYPE_PROMISCUOUS                    0x0020
00761 #define NDIS_PACKET_TYPE_SMT                                    0x0040
00762 #define NDIS_PACKET_TYPE_ALL_LOCAL                              0x0080
00763 #define NDIS_PACKET_TYPE_MAC_FRAME                              0x8000
00764 #define NDIS_PACKET_TYPE_FUNCTIONAL                             0x4000
00765 #define NDIS_PACKET_TYPE_ALL_FUNCTIONAL                 0x2000
00766 #define NDIS_PACKET_TYPE_GROUP                                  0x1000
00767 //
00768 // Ndis Token-Ring Ring Status Codes (OID_802_5_CURRENT_RING_STATUS).
00769 //
00770 #define NDIS_RING_SIGNAL_LOSS                                   0x00008000
00771 #define NDIS_RING_HARD_ERROR                                    0x00004000
00772 #define NDIS_RING_SOFT_ERROR                                    0x00002000
00773 #define NDIS_RING_TRANSMIT_BEACON                               0x00001000
00774 #define NDIS_RING_LOBE_WIRE_FAULT                               0x00000800
00775 #define NDIS_RING_AUTO_REMOVAL_ERROR                    0x00000400
00776 #define NDIS_RING_REMOVE_RECEIVED                               0x00000200
00777 #define NDIS_RING_COUNTER_OVERFLOW                              0x00000100
00778 #define NDIS_RING_SINGLE_STATION                                0x00000080
00779 #define NDIS_RING_RING_RECOVERY                                 0x00000040
00780 //
00781 // Ndis protocol option bits (OID_GEN_PROTOCOL_OPTIONS).
00782 //
00783 #define NDIS_PROT_OPTION_ESTIMATED_LENGTH       0x00000001
00784 #define NDIS_PROT_OPTION_NO_LOOPBACK                    0x00000002
00785 #define NDIS_PROT_OPTION_NO_RSVD_ON_RCVPKT              0x00000004
00786 //
00787 // Ndis MAC option bits (OID_GEN_MAC_OPTIONS).
00788 //
00789 #define NDIS_MAC_OPTION_COPY_LOOKAHEAD_DATA     0x00000001
00790 #define NDIS_MAC_OPTION_RECEIVE_SERIALIZED      0x00000002
00791 #define NDIS_MAC_OPTION_TRANSFERS_NOT_PEND      0x00000004
00792 #define NDIS_MAC_OPTION_NO_LOOPBACK                             0x00000008
00793 #define NDIS_MAC_OPTION_FULL_DUPLEX                             0x00000010
00794 #define NDIS_MAC_OPTION_EOTX_INDICATION                 0x00000020
00795 #define NDIS_MAC_OPTION_RESERVED                                0x80000000
00796 //
00797 //      NDIS MAC option bits for OID_GEN_CO_MAC_OPTIONS.
00798 //
00799 #define NDIS_CO_MAC_OPTION_DYNAMIC_LINK_SPEED   0x00000001
00800 #ifdef  IRDA
00801 //
00802 // The following is set on a per-packet basis as OOB data with NdisClassIrdaPacketInfo
00803 // This is the per-packet info specified on a per-packet basis
00804 //
00805 typedef struct _NDIS_IRDA_PACKET_INFO {
00806     UINT ExtraBOFs;
00807     UINT MinTurnAroundTime;
00808 } NDIS_IRDA_PACKET_INFO, *PNDIS_IRDA_PACKET_INFO;
00809 
00810 #endif
00811 #ifdef  WIRELESS_WAN
00812 //
00813 // Wireless WAN structure definitions
00814 //
00815 //
00816 // currently defined Wireless network subtypes
00817 //
00818 typedef enum _NDIS_WW_NETWORK_TYPE {
00819     NdisWWGeneric,
00820     NdisWWMobitex,
00821     NdisWWPinpoint,
00822     NdisWWCDPD,
00823     NdisWWArdis,
00824     NdisWWDataTAC,
00825     NdisWWMetricom,
00826     NdisWWGSM,
00827     NdisWWCDMA,
00828     NdisWWTDMA,
00829     NdisWWAMPS,
00830     NdisWWInmarsat,
00831     NdisWWpACT
00832 } NDIS_WW_NETWORK_TYPE;
00833 
00834 //
00835 // currently defined header formats
00836 //
00837 typedef enum _NDIS_WW_HEADER_FORMAT {
00838     NdisWWDIXEthernetFrames,
00839     NdisWWMPAKFrames,
00840     NdisWWRDLAPFrames,
00841     NdisWWMDC4800Frames
00842 } NDIS_WW_HEADER_FORMAT;
00843 
00844 //
00845 // currently defined encryption types
00846 //
00847 typedef enum _NDIS_WW_ENCRYPTION_TYPE {
00848     NdisWWUnknownEncryption = -1,
00849     NdisWWNoEncryption,
00850     NdisWWDefaultEncryption
00851 } NDIS_WW_ENCRYPTION_TYPE, *PNDIS_WW_ENCRYPTION_TYPE;
00852 
00853 //
00854 // OID_WW_GEN_INDICATION_REQUEST
00855 //
00856 typedef struct _NDIS_WW_INDICATION_REQUEST {
00857     NDIS_OID Oid;               // IN
00858 
00859     UINT uIndicationFlag;       // IN
00860 
00861     UINT uApplicationToken;     // IN OUT
00862 
00863     HANDLE hIndicationHandle;   // IN OUT
00864 
00865     INT iPollingInterval;       // IN OUT
00866 
00867     NDIS_VAR_DATA_DESC InitialValue;    // IN OUT
00868 
00869     NDIS_VAR_DATA_DESC OIDIndicationValue;      // OUT - only valid after indication
00870 
00871     NDIS_VAR_DATA_DESC TriggerValue;    // IN
00872 
00873 } NDIS_WW_INDICATION_REQUEST, *PNDIS_WW_INDICATION_REQUEST;
00874 
00875 #define OID_INDICATION_REQUEST_ENABLE                   0x0000
00876 #define OID_INDICATION_REQUEST_CANCEL                   0x0001
00877 //
00878 // OID_WW_GEN_DEVICE_INFO
00879 //
00880 typedef struct _WW_DEVICE_INFO {
00881     NDIS_VAR_DATA_DESC Manufacturer;
00882     NDIS_VAR_DATA_DESC ModelNum;
00883     NDIS_VAR_DATA_DESC SWVersionNum;
00884     NDIS_VAR_DATA_DESC SerialNum;
00885 } WW_DEVICE_INFO, *PWW_DEVICE_INFO;
00886 
00887 //
00888 // OID_WW_GEN_OPERATION_MODE
00889 //
00890 typedef INT WW_OPERATION_MODE;  //  0 = Normal mode
00891                                                                                                 //  1 = Power saving mode
00892                                                                                                 // -1 = mode unknown
00893 //
00894 // OID_WW_GEN_LOCK_STATUS
00895 //
00896 
00897 typedef INT WW_LOCK_STATUS;     //  0 = unlocked
00898                                                                                                 //  1 = locked
00899                                                                                                 // -1 = unknown lock status
00900 //
00901 // OID_WW_GEN_DISABLE_TRANSMITTER
00902 //
00903 
00904 typedef INT WW_DISABLE_TRANSMITTER;     //  0 = transmitter enabled
00905                                                                                                 //  1 = transmitter disabled
00906                                                                                                 // -1 = unknown value
00907 //
00908 // OID_WW_GEN_NETWORK_ID
00909 //
00910 
00911 typedef NDIS_VAR_DATA_DESC WW_NETWORK_ID;
00912 //
00913 // OID_WW_GEN_PERMANENT_ADDRESS 
00914 //
00915 typedef NDIS_VAR_DATA_DESC WW_PERMANENT_ADDRESS;
00916 //
00917 // OID_WW_GEN_CURRENT_ADDRESS   
00918 //
00919 typedef struct _WW_CURRENT_ADDRESS {
00920     NDIS_WW_HEADER_FORMAT Format;
00921     NDIS_VAR_DATA_DESC Address;
00922 } WW_CURRENT_ADDRESS, *PWW_CURRENT_ADDRESS;
00923 
00924 //
00925 // OID_WW_GEN_SUSPEND_DRIVER
00926 //
00927 typedef BOOLEAN WW_SUSPEND_DRIVER;      // 0 = driver operational
00928                                                                                                 // 1 = driver suspended
00929 //
00930 // OID_WW_GEN_BASESTATION_ID
00931 //
00932 
00933 typedef NDIS_VAR_DATA_DESC WW_BASESTATION_ID;
00934 //
00935 // OID_WW_GEN_CHANNEL_ID
00936 //
00937 typedef NDIS_VAR_DATA_DESC WW_CHANNEL_ID;
00938 //
00939 // OID_WW_GEN_ENCRYPTION_STATE
00940 //
00941 typedef BOOLEAN WW_ENCRYPTION_STATE;    // 0 = if encryption is disabled
00942                                                                                                 // 1 = if encryption is enabled
00943 //
00944 // OID_WW_GEN_CHANNEL_QUALITY
00945 //
00946 
00947 typedef INT WW_CHANNEL_QUALITY; //  0 = Not in network contact,
00948                                                                                                 // 1-100 = Quality of Channel (100 is highest quality).
00949                                                                                                 // -1 = channel quality is unknown
00950 //
00951 // OID_WW_GEN_REGISTRATION_STATUS
00952 //
00953 
00954 typedef INT WW_REGISTRATION_STATUS;     //  0 = Registration denied
00955                                                                                                 //  1 = Registration pending
00956                                                                                                 //  2 = Registered
00957                                                                                                 // -1 = unknown registration status
00958 //
00959 // OID_WW_GEN_RADIO_LINK_SPEED
00960 //
00961 
00962 typedef UINT WW_RADIO_LINK_SPEED;       // Bits per second.
00963 //
00964 // OID_WW_GEN_LATENCY
00965 //
00966 
00967 typedef UINT WW_LATENCY;        //  milliseconds
00968 //
00969 // OID_WW_GEN_BATTERY_LEVEL
00970 //
00971 
00972 typedef INT WW_BATTERY_LEVEL;   //  0-100 = battery level in percentage
00973                                                                                                 //      (100=fully charged)
00974                                                                                                 // -1 = unknown battery level.
00975 //
00976 // OID_WW_GEN_EXTERNAL_POWER
00977 //
00978 
00979 typedef INT WW_EXTERNAL_POWER;  //   0 = no external power connected
00980                                                                                                 //   1 = external power connected
00981                                                                                                 //  -1 = unknown
00982 //
00983 // OID_WW_MET_FUNCTION
00984 //
00985 
00986 typedef NDIS_VAR_DATA_DESC WW_MET_FUNCTION;
00987 //
00988 // OID_WW_TAC_COMPRESSION
00989 //
00990 typedef BOOLEAN WW_TAC_COMPRESSION;     // Determines whether or not network level compression
00991                                                                                                 // is being used.
00992 //
00993 // OID_WW_TAC_SET_CONFIG
00994 //
00995 
00996 typedef struct _WW_TAC_SETCONFIG {
00997     NDIS_VAR_DATA_DESC RCV_MODE;
00998     NDIS_VAR_DATA_DESC TX_CONTROL;
00999     NDIS_VAR_DATA_DESC RX_CONTROL;
01000     NDIS_VAR_DATA_DESC FLOW_CONTROL;
01001     NDIS_VAR_DATA_DESC RESET_CNF;
01002     NDIS_VAR_DATA_DESC READ_CNF;
01003 } WW_TAC_SETCONFIG, *PWW_TAC_SETCONFIG;
01004 
01005 //
01006 // OID_WW_TAC_GET_STATUS
01007 //
01008 typedef struct _WW_TAC_GETSTATUS {
01009     BOOLEAN Action;             // Set = Execute command.
01010 
01011     NDIS_VAR_DATA_DESC Command;
01012     NDIS_VAR_DATA_DESC Option;
01013     NDIS_VAR_DATA_DESC Response;        // The response to the requested command
01014     // - max. length of string is 256 octets.
01015 
01016 } WW_TAC_GETSTATUS, *PWW_TAC_GETSTATUS;
01017 
01018 //
01019 // OID_WW_TAC_USER_HEADER
01020 //
01021 typedef NDIS_VAR_DATA_DESC WW_TAC_USERHEADER;   // This will hold the user header - Max. 64 octets.
01022 //
01023 // OID_WW_ARD_SNDCP
01024 //
01025 
01026 typedef struct _WW_ARD_SNDCP {
01027     NDIS_VAR_DATA_DESC Version; // The version of SNDCP protocol supported.
01028 
01029     INT BlockSize;              // The block size used for SNDCP
01030 
01031     INT Window;                 // The window size used in SNDCP
01032 
01033 } WW_ARD_SNDCP, *PWW_ARD_SNDCP;
01034 
01035 //
01036 // OID_WW_ARD_TMLY_MSG
01037 //
01038 typedef BOOLEAN WW_ARD_CHANNEL_STATUS;  // The current status of the inbound RF Channel.
01039 //
01040 // OID_WW_ARD_DATAGRAM
01041 //
01042 
01043 typedef struct _WW_ARD_DATAGRAM {
01044     BOOLEAN LoadLevel;          // Byte that contains the load level info.
01045 
01046     INT SessionTime;            // Datagram session time remaining.
01047 
01048     NDIS_VAR_DATA_DESC HostAddr;        // Host address.
01049 
01050     NDIS_VAR_DATA_DESC THostAddr;       // Test host address.
01051 
01052 } WW_ARD_DATAGRAM, *PWW_ARD_DATAGRAM;
01053 
01054 //
01055 // OID_WW_CDPD_SPNI
01056 //
01057 typedef struct _WW_CDPD_SPNI {
01058     UINT SPNI[10];              //10 16-bit service provider network IDs
01059 
01060     INT OperatingMode;          // 0 = ignore SPNI,
01061     // 1 = require SPNI from list,
01062     // 2 = prefer SPNI from list.
01063     // 3 = exclude SPNI from list.
01064 
01065 } WW_CDPD_SPNI, *PWW_CDPD_SPNI;
01066 
01067 //
01068 // OID_WW_CDPD_WASI
01069 //
01070 typedef struct _WW_CDPD_WIDE_AREA_SERVICE_ID {
01071     UINT WASI[10];              //10 16-bit wide area service IDs
01072 
01073     INT OperatingMode;          // 0 = ignore WASI,
01074     // 1 = Require WASI from list,
01075     // 2 = prefer WASI from list
01076     // 3 = exclude WASI from list.
01077 
01078 } WW_CDPD_WIDE_AREA_SERVICE_ID, *PWW_CDPD_WIDE_AREA_SERVICE_ID;
01079 
01080 //
01081 // OID_WW_CDPD_AREA_COLOR
01082 //
01083 typedef INT WW_CDPD_AREA_COLOR;
01084 //
01085 // OID_WW_CDPD_TX_POWER_LEVEL
01086 //
01087 typedef UINT WW_CDPD_TX_POWER_LEVEL;
01088 //
01089 // OID_WW_CDPD_EID
01090 //
01091 typedef NDIS_VAR_DATA_DESC WW_CDPD_EID;
01092 //
01093 // OID_WW_CDPD_HEADER_COMPRESSION
01094 //
01095 typedef INT WW_CDPD_HEADER_COMPRESSION;         //  0 = no header compression,
01096                                                                                                 //  1 = always compress headers,
01097                                                                                                 //  2 = compress headers if MD-IS does
01098                                                                                                 // -1 = unknown
01099 //
01100 // OID_WW_CDPD_DATA_COMPRESSION
01101 //
01102 
01103 typedef INT WW_CDPD_DATA_COMPRESSION;   // 0  = no data compression,
01104                                                                                                 // 1  = data compression enabled
01105                                                                                                 // -1 =  unknown
01106 //
01107 // OID_WW_CDPD_CHANNEL_SELECT
01108 //
01109 
01110 typedef struct _WW_CDPD_CHANNEL_SELECT {
01111     UINT ChannelID;             // channel number
01112 
01113     UINT fixedDuration;         // duration in seconds
01114 
01115 } WW_CDPD_CHANNEL_SELECT, *PWW_CDPD_CHANNEL_SELECT;
01116 
01117 //
01118 // OID_WW_CDPD_CHANNEL_STATE
01119 //
01120 typedef enum _WW_CDPD_CHANNEL_STATE {
01121     CDPDChannelNotAvail,
01122     CDPDChannelScanning,
01123     CDPDChannelInitAcquired,
01124     CDPDChannelAcquired,
01125     CDPDChannelSleeping,
01126     CDPDChannelWaking,
01127     CDPDChannelCSDialing,
01128     CDPDChannelCSRedial,
01129     CDPDChannelCSAnswering,
01130     CDPDChannelCSConnected,
01131     CDPDChannelCSSuspended
01132 } WW_CDPD_CHANNEL_STATE, *PWW_CDPD_CHANNEL_STATE;
01133 
01134 //
01135 // OID_WW_CDPD_NEI
01136 //
01137 typedef enum _WW_CDPD_NEI_FORMAT {
01138     CDPDNeiIPv4,
01139     CDPDNeiCLNP,
01140     CDPDNeiIPv6
01141 } WW_CDPD_NEI_FORMAT, *PWW_CDPD_NEI_FORMAT;
01142 typedef enum _WW_CDPD_NEI_TYPE {
01143     CDPDNeiIndividual,
01144     CDPDNeiMulticast,
01145     CDPDNeiBroadcast
01146 } WW_CDPD_NEI_TYPE;
01147 typedef struct _WW_CDPD_NEI {
01148     UINT uNeiIndex;
01149     WW_CDPD_NEI_FORMAT NeiFormat;
01150     WW_CDPD_NEI_TYPE NeiType;
01151     WORD NeiGmid;               // group member identifier, only
01152     // meaningful if NeiType ==
01153     // CDPDNeiMulticast
01154 
01155     NDIS_VAR_DATA_DESC NeiAddress;
01156 } WW_CDPD_NEI;
01157 
01158 //
01159 // OID_WW_CDPD_NEI_STATE
01160 //
01161 typedef enum _WW_CDPD_NEI_STATE {
01162     CDPDUnknown,
01163     CDPDRegistered,
01164     CDPDDeregistered
01165 } WW_CDPD_NEI_STATE, *PWW_CDPD_NEI_STATE;
01166 typedef enum _WW_CDPD_NEI_SUB_STATE {
01167     CDPDPending,                // Registration pending
01168      CDPDNoReason,              // Registration denied - no reason given
01169      CDPDMDISNotCapable,        // Registration denied - MD-IS not capable of
01170     //  handling M-ES at this time
01171      CDPDNEINotAuthorized,      // Registration denied - NEI is not authorized to
01172     //  use this subnetwork
01173      CDPDInsufficientAuth,      // Registration denied - M-ES gave insufficient
01174     //  authentication credentials
01175      CDPDUnsupportedAuth,       // Registration denied - M-ES gave unsupported
01176     //  authentication credentials
01177      CDPDUsageExceeded,         // Registration denied - NEI has exceeded usage
01178     //  limitations
01179      CDPDDeniedThisNetwork      // Registration denied on this network, service
01180     //  may be obtained on alternate Service Provider
01181     //  network
01182 } WW_CDPD_NEI_SUB_STATE;
01183 typedef struct _WW_CDPD_NEI_REG_STATE {
01184     UINT uNeiIndex;
01185     WW_CDPD_NEI_STATE NeiState;
01186     WW_CDPD_NEI_SUB_STATE NeiSubState;
01187 } WW_CDPD_NEI_REG_STATE, *PWW_CDPD_NEI_REG_STATE;
01188 
01189 //
01190 // OID_WW_CDPD_SERVICE_PROVIDER_IDENTIFIER
01191 //
01192 typedef struct _WW_CDPD_SERVICE_PROVIDER_ID {
01193     UINT SPI[10];               //10 16-bit service provider IDs
01194 
01195     INT OperatingMode;          // 0 = ignore SPI,
01196     // 1 = require SPI from list,
01197     // 2 = prefer SPI from list.
01198     // 3 = exclude SPI from list.
01199 
01200 } WW_CDPD_SERVICE_PROVIDER_ID, *PWW_CDPD_SERVICE_PROVIDER_ID;
01201 
01202 //
01203 // OID_WW_CDPD_SLEEP_MODE
01204 //
01205 typedef INT WW_CDPD_SLEEP_MODE;
01206 //
01207 // OID_WW_CDPD_TEI
01208 //
01209 typedef ULONG WW_CDPD_TEI;
01210 //
01211 // OID_WW_CDPD_CIRCUIT_SWITCHED
01212 //
01213 typedef struct _WW_CDPD_CIRCUIT_SWITCHED {
01214     INT service_preference;     // -1 = unknown,
01215     //  0 = always use packet switched CDPD,
01216     //  1 = always use CS CDPD via AMPS,
01217     //  2 = always use CS CDPD via PSTN,
01218     //  3 = use circuit switched via AMPS only
01219     //      when packet switched is not available.
01220     //  4 = use packet switched only when circuit
01221     //   switched via AMPS is not available.
01222     //  5 = device manuf. defined service
01223     //   preference.
01224     //  6 = device manuf. defined service
01225     //   preference.
01226 
01227     INT service_status;         // -1 = unknown,
01228     //  0 = packet switched CDPD,
01229     //  1 = circuit switched CDPD via AMPS,
01230     //  2 = circuit switched CDPD via PSTN.
01231 
01232     INT connect_rate;           //  CS connection bit rate (bits per second).
01233     //  0 = no active connection,
01234     // -1 = unknown
01235     //  Dial code last used to dial.
01236 
01237     NDIS_VAR_DATA_DESC dial_code[20];
01238 
01239     UINT sid;                   //  Current AMPS system ID
01240 
01241     INT a_b_side_selection;     // -1 = unknown,
01242     //  0 = no AMPS service
01243     //  1 = AMPS "A" side channels selected
01244     //  2 = AMPS "B" side channels selected
01245 
01246     INT AMPS_channel;           // -1= unknown
01247     //  0 = no AMPS service.
01248     //  1-1023 = AMPS channel number in use
01249 
01250     UINT action;                //  0 = no action
01251     //  1 = suspend (hangup)
01252     //  2 = dial
01253 
01254     //  Default dial code for CS CDPD service
01255     //  encoded as specified in the CS CDPD
01256     //  implementor guidelines.
01257     NDIS_VAR_DATA_DESC default_dial[20];
01258 
01259     //  Number for the CS CDPD network to call
01260     //   back the mobile, encoded as specified in
01261     //   the CS CDPD implementor guidelines.
01262     NDIS_VAR_DATA_DESC call_back[20];
01263 
01264     UINT sid_list[10];          //  List of 10 16-bit preferred AMPS
01265     //   system IDs for CS CDPD.
01266 
01267     UINT inactivity_timer;      //  Wait time after last data before dropping
01268     //   call.
01269     //  0-65535 = inactivity time limit (seconds).
01270 
01271     UINT receive_timer;         //  secs. per CS-CDPD Implementor Guidelines.
01272 
01273     UINT conn_resp_timer;       //  secs. per CS-CDPD Implementor Guidelines.
01274 
01275     UINT reconn_resp_timer;     //  secs. per CS-CDPD Implementor Guidelines.
01276 
01277     UINT disconn_timer;         //  secs. per CS-CDPD Implementor Guidelines.
01278 
01279     UINT NEI_reg_timer;         //  secs. per CS-CDPD Implementor Guidelines.
01280 
01281     UINT reconn_retry_timer;    //  secs. per CS-CDPD Implementor Guidelines.
01282 
01283     UINT link_reset_timer;      //  secs. per CS-CDPD Implementor Guidelines.
01284 
01285     UINT link_reset_ack_timer;  //  secs. per CS-CDPD Implementor Guidelines.
01286 
01287     UINT n401_retry_limit;      //  per CS-CDPD Implementor Guidelines.
01288 
01289     UINT n402_retry_limit;      //  per CS-CDPD Implementor Guidelines.
01290 
01291     UINT n404_retry_limit;      //  per CS-CDPD Implementor Guidelines.
01292 
01293     UINT n405_retry_limit;      //  per CS-CDPD Implementor Guidelines.
01294 
01295 } WW_CDPD_CIRCUIT_SWITCHED, *WW_PCDPD_CIRCUIT_SWITCHED;
01296 typedef UINT WW_CDPD_RSSI;
01297 //
01298 // OID_WW_PIN_LOC_AUTHORIZE
01299 //
01300 typedef INT WW_PIN_AUTHORIZED;  // 0  = unauthorized
01301                                                                                                 // 1  = authorized
01302                                                                                                 // -1 = unknown
01303 //
01304 // OID_WW_PIN_LAST_LOCATION
01305 // OID_WW_PIN_LOC_FIX
01306 //
01307 
01308 typedef struct _WW_PIN_LOCATION {
01309     INT Latitude;               // Latitude in hundredths of a second
01310 
01311     INT Longitude;              // Longitude in hundredths of a second
01312 
01313     INT Altitude;               // Altitude in feet
01314 
01315     INT FixTime;                // Time of the location fix, since midnight,  local time (of the
01316     // current day), in tenths of a second
01317 
01318     INT NetTime;                // Current local network time of the current day, since midnight,
01319     // in tenths of a second
01320 
01321     INT LocQuality;             // 0-100 = location quality
01322 
01323     INT LatReg;                 // Latitude registration offset, in hundredths of a second
01324 
01325     INT LongReg;                // Longitude registration offset, in hundredths of a second
01326 
01327     INT GMTOffset;              // Offset in minutes of the local time zone from GMT
01328 
01329 } WW_PIN_LOCATION, *PWW_PIN_LOCATION;
01330 
01331 //
01332 // The following is set on a per-packet basis as OOB data with NdisClassWirelessWanMbxMailbox
01333 //
01334 typedef ULONG WW_MBX_MAILBOX_FLAG;      // 1 = set mailbox flag, 0 = do not set mailbox flag
01335 //
01336 // OID_WW_MBX_SUBADDR
01337 //
01338 
01339 typedef struct _WW_MBX_PMAN {
01340     BOOLEAN ACTION;             // 0 = Login PMAN,  1 = Logout PMAN
01341 
01342     UINT MAN;
01343     UCHAR PASSWORD[8];          // Password should be null for Logout and indications.
01344     // Maximum length of password is 8 chars.
01345 
01346 } WW_MBX_PMAN, *PWW_MBX_PMAN;
01347 
01348 //
01349 // OID_WW_MBX_FLEXLIST
01350 //
01351 typedef struct _WW_MBX_FLEXLIST {
01352     INT count;                  //  Number of MAN entries used.
01353     // -1=unknown.
01354 
01355     UINT MAN[7];                //  List of MANs.
01356 
01357 } WW_MBX_FLEXLIST;
01358 
01359 //
01360 // OID_WW_MBX_GROUPLIST
01361 //
01362 typedef struct _WW_MBX_GROUPLIST {
01363     INT count;                  //  Number of MAN entries used.
01364     // -1=unknown.
01365 
01366     UINT MAN[15];               //  List of MANs.
01367 
01368 } WW_MBX_GROUPLIST;
01369 
01370 //
01371 // OID_WW_MBX_TRAFFIC_AREA
01372 //
01373 typedef enum _WW_MBX_TRAFFIC_AREA {
01374     unknown_traffic_area,       // The driver has no information about the current traffic area.
01375      in_traffic_area,           // Mobile unit has entered a subscribed traffic area.
01376      in_auth_traffic_area,      // Mobile unit is outside traffic area but is authorized.
01377      unauth_traffic_area        // Mobile unit is outside traffic area but is un-authorized.
01378 } WW_MBX_TRAFFIC_AREA;
01379 
01380 //
01381 // OID_WW_MBX_LIVE_DIE
01382 //
01383 typedef INT WW_MBX_LIVE_DIE;    //  0 = DIE last received       
01384                                                                                                 //  1 = LIVE last received
01385                                                                                                 // -1 = unknown
01386 //
01387 // OID_WW_MBX_TEMP_DEFAULTLIST
01388 //
01389 
01390 typedef struct _WW_MBX_CHANNEL_PAIR {
01391     UINT Mobile_Tx;
01392     UINT Mobile_Rx;
01393 } WW_MBX_CHANNEL_PAIR, *PWW_MBX_CHANNEL_PAIR;
01394 typedef struct _WW_MBX_TEMPDEFAULTLIST {
01395     UINT Length;
01396     WW_MBX_CHANNEL_PAIR ChannelPair[1];
01397 } WW_MBX_TEMPDEFAULTLIST, *WW_PMBX_TEMPDEFAULTLIST;
01398 
01399 #endif                          // WIRELESS_WAN
01400 #endif                          // _NTDDNDIS_

Generated on Sun May 14 14:51:20 2006 by  doxygen 1.4.2