Поделиться через


NDIS_TAPI_SET_DEFAULT_MEDIA_DETECTION (Compact 2013)

3/26/2014

The NDIS_TAPI_SET_DEFAULT_MEDIA_DETECTION structure is used by OID_TAPI_SET_DEFAULT_MEDIA_DETECTION when it requests the miniport driver to use a new set of media modes to detect for the indicated line, thereby replacing whatever set it was using.

The miniport driver must not notify the WAN protocol driver of an incoming call unless this request has been successfully completed for the incoming call's media mode.

Support for this request is mandatory.

Syntax

typedef struct _NDIS_TAPI_SET_DEFAULT_MEDIA_DETECTION { 
  ULONG ulRequestID; 
  HDRV_LINE hdLine; 
  ULONG ulMediaModes; 
} NDIS_TAPI_SET_DEFAULT_MEDIA_DETECTION, *PNDIS_TAPI_SET_DEFAULT_MEDIA_DETECTION; 

Members

  • ulRequestID
    [in] Reserved.
  • hdLine
    [in] Specifies the miniport driver's handle to the line for which the default media mode should be set.
  • ulMediaModes
    [in] Specifies the media mode(s) of interest to NDISTAPI. This member is set with one or more of the LINEMEDIAMODE constants.

Remarks

The MiniportSetInformation function can return one of the following:

  • NDIS_STATUS_SUCCESS
  • NDIS_STATUS_PENDING
  • NDIS_STATUS_TAPI_INVALLINEHANDLE
  • NDIS_STATUS_TAPI_INVALMEDIAMODE
  • NDIS_STATUS_TAPI_NODRIVER
  • NDIS_STATUS_TAPI_RESOURCEUNAVAIL
  • NDIS_STATUS_FAILURE

Requirements

Header

ndistapi.h,
ntddndis.h

See Also

Reference

NDIS 5.x Legacy Structures
OID_TAPI_SET_DEFAULT_MEDIA_DETECTION
MiniportSetInformation