TSPI_lineDevSpecific function (tspi.h)
The TSPI_lineDevSpecific function is used as a general extension mechanism to enable service providers to provide access to features not described in other operations. The meanings of the extensions are device-specific, and to take advantage of these extensions the application must be fully aware of them.
Syntax
LONG TSPIAPI TSPI_lineDevSpecific(
DRV_REQUESTID dwRequestID,
HDRVLINE hdLine,
DWORD dwAddressID,
HDRVCALL hdCall,
LPVOID lpParams,
DWORD dwSize
);
Parameters
dwRequestID
The identifier of the asynchronous request.
hdLine
The service provider's handle to the line to be operated on.
dwAddressID
The address on the specified line to be operated on. An address identifier is permanently associated with an address; the identifier remains constant across operating system upgrades.
hdCall
The service provider's handle to the call to be operated on. This field may have the value NULL. The call state of hdCall is device specific.
lpParams
A pointer to a memory area used to hold a parameter block. The format of this parameter block is device specific.
dwSize
The size in bytes of the parameter block area. If the lpParams parameter is a pointer to a string, the size must include the null terminator.
Return value
Returns dwRequestID or an error number if an error occurs. The lResult actual parameter of the corresponding ASYNC_COMPLETION is zero if the function succeeds or an error number if an error occurs. Possible return values are as follows:
LINEERR_INVALLINEHANDLE, LINEERR_OPERATIONUNAVAIL, LINEERR_INVALADDRESSID, LINEERR_OPERATIONFAILED, LINEERR_NOMEM, LINEERR_RESOURCEUNAVAIL.
Remarks
Additional return values are device specific.
This operation provides a generic parameter profile. The interpretation of the parameter structure is device specific. TAPI always specifies the hdLine parameter. Whether dwAddressID and/or hdCall are expected to be valid is device specific. If specified, they must belong to hdLine. Indications and replies sent back to the application that are device specific use the LINE_DEVSPECIFIC message.
This function is called in direct response to an application calling the TAPI function lineDevSpecific. TAPI translates the hLine and hdCall parameters used at the TAPI level to the corresponding hdLine and hdCall parameters used at the TSPI level. The lpParams buffer is passed unmodified.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | tspi.h |