共用方式為


OID_TAPI_SET_DEFAULT_MEDIA_DETECTION

The OID_TAPI_SET_DEFAULT_MEDIA_DETECTION OID 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 NDISWAN of an incoming call unless this request has been successfully completed for the incoming call's media mode.

Support for this request is mandatory.

This request uses an NDIS_TAPI_SET_DEFAULT_MEDIA_DETECTION structure, defined as follows:

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

The members of this structure contain the following information:

  • ulRequestID
    Reserved.

  • hdLine
    Specifies the miniport driver's handle to the line for which the default media mode should be set.

  • ulMediaModes
    Specifies the media mode(s) of interest to NDISTAPI. This member is set with one or more of the LINEMEDIAMODE constants. For more information, see ndistapi.h.

The MiniportSetInformationfunction 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

 

 

Send comments about this topic to Microsoft