Microsoft KB Archive/159379

{|
 * width="100%"|

DOCERR: lineInitialize returns LINEERR_UNINITIALIZED

 * }

Q159379

-

The information in this article applies to:


 * Microsoft Win32 Application Programming Interface (API), version 4.0

-

SUMMARY
TAPI distinguishes each calling application by its hInstance value. On Windows 95, it is an error to call lineInitialize with an hInstance value of NULL.

The Win32 SDK documentation for TAPI 1.4 incorrectly documents the return code under this condition to be LINEERR_INVALPARAM.

MORE INFORMATION
Under Windows 95, if lineInitialize is called with an hInstance value of NULL, it will return LINEERR_UNINITIALIZED.

Under TAPI 2.0, it is acceptable to call lineInitialize or lineInitializeEx with hInstance value of 0 or NULL. In this case, TAPI will use the module handle of the calling process by default.