The information in this article applies to:
SUMMARYTAPI.DLL will pre-validate the device ID parameter before passing it onto the service provider. However, the ATSP sample source code provided with the TAPI (Telephony application programming interface) SDK, returns LINEERR_BADDEVICEID for calls that take device IDs as a parameter:
The documentation correctly indicates LINEERR_BADDEVICEID is not a valid
return value for these functions.
SYMPTOMSNone. Because TAPI.DLL catches the bad device ID before it is passed to the service provider, the code in ATSP is never executed. CAUSEThe code in the ATSP sample is an artifact of an earlier (beta) version of TAPI.DLL. RESOLUTIONDo not put code that returns LINERR_BADDEVICEID in your service provider. MORE INFORMATION
In general, TAPI pre-validates many parameters, and the documentation
explicitly indicates only those cases where a parameter is not pre-
validated. Even so, there are certain places in the sample service provider
in which the return codes still exist for pre-validated parameters. For
example, line handles are supposed to be pre-validated, but functions in
the sample service provider still have code that returns
LINEERR_INVALLINEHANDLE.
Additional query words: 1.00 no32bit 3.10
Keywords : kb16bitonly Tapi |
Last Reviewed: November 5, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |