3.1.7.15 TSPI_phoneNegotiateExtVersion

Syntax

LONG TSPI_phoneNegotiateTSPIVersion(dwDeviceID, dwTSPIVersion, dwLowVersion, dwHighVersion)

This function returns the highest Extension version number the Service Provider is willing to operate under for this device given the range of possible Extension versions.

Parameters

DWORD dwDeviceID
Identifies the phone device for which interface version negotiation is to be performed. The value INITIALIZE_NEGOTIATION may not be used for this function.

DWORD dwTSPIVersion
Specifies an interface version number that has already been negotiated for this device using TSPI_phoneNegotiateTSPIVersion. This function operates according to the interface specification at this version level.

DWORD dwLowVersion
Specifies the lowest Extension version number under which the TAPI DLL or its client application is willing to operate. The most-significant WORD is the major version number and the least-significant WORD is the minor version number.

DWORD dwHighVersion
Specifies the highest Extension version number under which the TAPI DLL or its client application is willing to operate. The most-significant WORD is the major version number and the least-significant WORD is the minor version number.

Return Value

The Service Provider returns the highest Extension version number, within the range requested by the caller, under which the Service Provider is willing to operate. If the requested range does not overlap the range supported by the Service Provider, the function returns zero.

Comments

This function may be called before or after the device has been opened by the TAPI DLL. If the device is currently open and has an Extension version selected, the function should return that version number if it is within the requested range. If the selected version number is outside the requested range, the function returns 0.

Comparison

There is no directly corresponding function at the TAPI level, at which both interface version negotiation and Extension version negotiation are done as overloaded uses of phoneGetDevCaps.

See Also

Functions: TSPI_phoneGetProcTable, TSPI_phoneNegotiateExtVersion
Constants: INITIALIZE_NEGOTIATION