lineGetTranslateCaps

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This function returns address translation capabilities.

Syntax

LONG lineGetTranslateCaps(
  HLINEAPP hLineApp, 
  DWORD dwAPIVersion, 
  LPLINETRANSLATECAPS lpTranslateCaps
);

Parameters

  • hLineApp
    [in] Application handle returned by the lineInitialize function. If an application has not yet called lineInitialize, it can set the hLineApp parameter to NULL.
  • dwAPIVersion
    [in] The highest version of TAPI supported by the application (not necessarily the value negotiated by the lineNegotiateAPIVersion function on some particular line device).
  • lpTranslateCaps
    [out] Pointer to where a LINETRANSLATECAPS structure is loaded. Prior to calling lineGetTranslateCaps, the application should set the dwTotalSize member of this structure to indicate the amount of memory available to TAPI for returning data.

Return Value

Zero indicates success. A negative error number indicates that an error occurred. The following table shows the return values for this function.

Value Description

LINEERR_INVALAPPHANDLE

Invalid handle

LINEERR_NOMEM

No memory is available

LINEERR_INCOMPATIBLEAPIVERSION

Incompatiple API version

LINEERR_OPERATIONFAILED

The operation failed

LINEERR_INIFILECORRUPT

The INI file is corrupted

LINEERR_RESOURCEUNAVAIL

The resource is unavailable

LINEERR_INVALPOINTER

The pointer is invalid

LINEERR_STRUCTURETOOSMALL

The structure is too small

LINEERR_NODRIVER

No driver was found

Requirements

Header tapi.h
Library coredll.lib
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

lineInitialize
lineNegotiateAPIVersion
LINETRANSLATECAPS