Partager via


NDIS_TAPI_SET_DEV_CONFIG (Compact 2013)

3/26/2014

The NDIS_TAPI_SET_DEV_CONFIG structure is used by OID_TAPI_SET_DEV_CONFIG when it requests the miniport driver to restore the configuration of a device associated one-to-one with the line device from a configuration previously obtained using OID_TAPI_SET_DEV_CONFIG.

The contents of this structure are specific to the miniport driver's line and device class.

Support for this request is mandatory.

Syntax

typedef struct _NDIS_TAPI_SET_DEV_CONFIG { 
  ULONG ulRequestID; 
  ULONG ulDeviceID; 
  ULONG ulDeviceClassSize; 
  ULONG ulDeviceClassOffset; 
  ULONG ulDeviceConfigSize; 
  UCHAR DeviceConfig[1]; 
} NDIS_TAPI_SET_DEV_CONFIG, *PNDIS_TAPI_SET_DEV_CONFIG; 

Members

  • ulRequestID
    [in] Reserved.
  • ulDeviceClassSize
    [in] Specifies the size in bytes of the device class for the device whose configuration is to be restored. Valid device class strings are the same as those specified for the OID_TAPI_GET_ID request when it is applied to a line device (ulSelect has the value LINECALLSELECT_LINE).
  • ulDeviceClassOffset
    [in] Specifies the offset in bytes to the device class of the device whose configuration is to be restored.
  • ulDeviceConfigSize
    [in] Specifies the number of bytes at DeviceConfig. This value was already returned in the ulStringSize member in the VAR_STRING structure returned for a preceding OID_TAPI_GET_DEV_CONFIG request.
  • DeviceConfig
    [in] Specifies data that was returned in the variable portion of the VAR_STRING structure for a preceding OID_TAPI_GET_DEV_CONFIG request.

Remarks

The MiniportSetInformation function can return one of the following:

  • NDIS_STATUS_SUCCESS
  • NDIS_STATUS_PENDING
  • NDIS_STATUS_TAPI_INVALDEVICECLASS
  • NDIS_STATUS_TAPI_INVALPARAM
  • 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_GET_DEV_CONFIG
OID_TAPI_SET_DEV_CONFIG
OID_TAPI_PROVIDER_INITIALIZE
MiniportSetInformation
VAR_STRING