The TSPI_lineGetAddressCaps function queries the specified address on the specified line device to determine its telephony capabilities.
LONG TSPI_lineGetAddressCaps(
DWORD dwDeviceID,
DWORD dwAddressID,
DWORD dwTSPIVersion,
DWORD dwExtVersion,
LPLINEADDRESSCAPS lpAddressCaps
);
Returns zero if the function succeeds or an error number if an error occurs. Possible return values are as follows:
LINEERR_INCOMPATIBLEAPIVERSION, LINEERR_NOMEM, LINEERR_INCOMPATIBLEEXTVERSION, LINEERR_OPERATIONUNAVAIL, LINEERR_INVALADDRESSID, LINEERR_OPERATIONFAILED, LINEERR_NODRIVER, LINEERR_RESOURCEUNAVAIL.
The line device identifiers supported by a particular driver are numbered sequentially starting with the value of dwLineDeviceIDBase that is passed into the TSPI_providerInit function.
The service provider fills in all the members of the LINEADDRESSCAPS data structure, except for dwTotalSize, which is filled in by TAPI. The service provider must not overwrite the dwTotalSize member.
After the service provider returns from the TSPI_lineGetAddressCaps function, TAPI sets the dwCallInfoStates and dwCallStates members of the LINEADDRESSCAPS structure as follows:
LINEADDRESSCAPS.dwCallInfoStates |=
LINECALLINFOSTATE_NUMOWNERINCR |
LINECALLINFOSTATE_NUMOWNERDECR |
LINECALLINFOSTATE_NUMMONITORS;
LINEADDRESSCAPS.dwCallStates |= LINECALLSTATE_UNKNOWN;
LINEADDRESSCAPS, TSPI_providerInit