Share via


NDIS_TAPI_SET_DEFAULT_MEDIA_DETECTION

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.

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

OS Versions: Windows CE .NET 4.0 and later.
Header: Ntddndis.h and Ndistapi.h.

See Also

OID_TAPI_SET_DEFAULT_MEDIA_DETECTION | MiniportSetInformation

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.