This topic has not yet been rated - Rate this topic

lineGetCallInfo function

Applies to: desktop apps only

The lineGetCallInfo function enables an application to obtain fixed information about the specified call.

Syntax

LONG WINAPI lineGetCallInfo(
  HCALL hCall,
  LPLINECALLINFO lpCallInfo
);

Parameters

hCall

Handle to the call to be queried. The call state of hCall can be any state.

lpCallInfo

Pointer to a variably sized data structure of type LINECALLINFO. Upon successful completion of the request, this structure is filled with call-related information. Prior to calling lineGetCallInfo, the application should set the dwTotalSize member of this structure to indicate the amount of memory available to TAPI for returning information.

Return value

Returns zero if the request succeeds or a negative error number if an error occurs. Possible return values are:

LINEERR_INVALCALLHANDLE, LINEERR_RESOURCEUNAVAIL, LINEERR_INVALPOINTER, LINEERR_STRUCTURETOOSMALL, LINEERR_NOMEM, LINEERR_UNINITIALIZED, LINEERR_OPERATIONFAILED, LINEERR_OPERATIONUNAVAIL.

Remarks

A separate LINECALLINFO structure exists for every incoming or outgoing call. The structure contains primarily fixed information about the call. An application would typically be interested in checking this information when it receives its handle for a call by the LINE_CALLSTATE message, or each time it receives notification by a LINE_CALLINFO message that parts of the call information structure have changed. These messages supply the handle for the call as a parameter.

Requirements

TAPI version

Requires TAPI 1.3 or later

Header

Tapi.h

Library

Tapi32.lib

DLL

Tapi32.dll

Unicode and ANSI names

lineGetCallInfoW (Unicode) and lineGetCallInfoA (ANSI)

See also

TAPI 2.2 Reference Overview
Basic Telephony Services Reference
LINE_CALLINFO
LINE_CALLSTATE
LINECALLINFO

 

 

Send comments about this topic to Microsoft

Build date: 2/3/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ