NDIS_TAPI_GET_ID (Compact 2013)
3/26/2014
This structure is used by OID_TAPI_GET_ID when it requests the miniport driver to return a device identifier for the specified device class associated with the selected line, address, or call.
Support for this request is mandatory.
Syntax
typedef struct _NDIS_TAPI_GET_ID {
ULONG ulRequestID;
HDRV_LINE hdLine;
ULONG ulAddressID;
HDRV_CALL hdCall;
ULONG ulSelect;
ULONG ulDeviceClassSize;
ULONG ulDeviceClassOffset;
VAR_STRING DeviceID;
} NDIS_TAPI_GET_ID, *PNDIS_TAPI_GET_ID;
Members
- ulRequestID
[in] Reserved.
- hdLine
[in] Specifies the miniport driver's handle to the line.
- ulAddressID
[in] Specifies an address on the given open line device. The value of this member is not validated by NDISTAPI when this request is made.
- hdCall
[in] Specifies the miniport driver's handle to the call.
- ulSelect
[in] Specifies whether the device identifier is associated with the line, address, or a single call as one of the following:
- ulDeviceClassSize
[in] Specifies the size in bytes of the zero-terminated, variable-size string specifying the device class of the device for which the configuration should be returned.
- ulDeviceClassOffset
[in] Specifies the offset in bytes to the device-class string.
DeviceID
[out] Specifies the virtual address of a data structure of type VAR_STRING in which the device identifier should be returned.The miniport driver fills this structure with the device identifier to complete this request successfully.
Currently, there are two kinds of this request that must be supported by WAN network adapter drivers:
IN DeviceClass = "ndis" // case-insensitive IN ulSelect = LINECALLSELECT_CALL IN hdCall = ActiveCallHandle OUT DeviceID = ConnectionWrapperID
DeviceID should be set to the NdisLinkContext handle returned by the WAN protocol driver in the NDIS_MAC_LINE_UP structure.
The miniport driver must make the initial line-up indication to establish a link (or open a data channel on a line) before it returns from this request in order to supply this DeviceID value.
IN DeviceClass = "tapi/line" IN ulSelect = LINECALLSELECT_LINE IN hdLine = OpenLineHandle OUT DeviceID = ulDeviceID
DeviceID will be set to the miniport driver-determined DeviceID associated with the line handle.
Remarks
The MiniportQueryInformation function can return one of the following:
- NDIS_STATUS_SUCCESS
- NDIS_STATUS_PENDING
- NDIS_STATUS_TAPI_INVALLINEHANDLE
- NDIS_STATUS_TAPI_INVALADDRESSID
- NDIS_STATUS_TAPI_INVALCALLHANDLE
- NDIS_STATUS_TAPI_NODEVICE
- NDIS_STATUS_TAPI_RESOURCEUNAVAIL
- NDIS_STATUS_FAILURE
Requirements
Header |
ndistapi.h, |
See Also
Reference
NDIS 5.x Legacy Structures
NDIS_MAC_LINE_UP
OID_TAPI_GET_ID
MiniportQueryInformation
VAR_STRING
NDIS 5.x Legacy Reference