Skip to content

Latest commit

 

History

History
102 lines (74 loc) · 3.59 KB

nf-tapi-linegetaddressstatusa.md

File metadata and controls

102 lines (74 loc) · 3.59 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:tapi.lineGetAddressStatusA
lineGetAddressStatusA function (tapi.h)
The lineGetAddressStatus function allows an application to query the specified address for its current status. (lineGetAddressStatusA)
lineGetAddressStatusA
tapi/lineGetAddressStatusA
tapi2\linegetaddressstatus.htm
tapi3
8d747aa5-05cc-4426-9d46-24bce6b4af26
12/05/2018
_tapi2_linegetaddressstatus, lineGetAddressStatus, lineGetAddressStatus function [TAPI 2.2], lineGetAddressStatusA, lineGetAddressStatusW, tapi/lineGetAddressStatus, tapi/lineGetAddressStatusA, tapi/lineGetAddressStatusW, tapi2.linegetaddressstatus
tapi.h
Windows
lineGetAddressStatusW (Unicode) and lineGetAddressStatusA (ANSI)
Tapi32.lib
Tapi32.dll
Windows
19H1
lineGetAddressStatusA
tapi/lineGetAddressStatusA
c++
APIRef
kbSyntax
DllExport
Tapi32.dll
lineGetAddressStatus
lineGetAddressStatusA
lineGetAddressStatusW

lineGetAddressStatusA function

-description

The lineGetAddressStatus function allows an application to query the specified address for its current status.

-parameters

-param hLine

Handle to the open line device.

-param dwAddressID

Address on the given open line device. This is the address to be queried. An address identifier is permanently associated with an address; the identifier remains constant across operating system upgrades.

-param lpAddressStatus

Pointer to a variably sized data structure of type LINEADDRESSSTATUS. Prior to calling lineGetAddressStatus, the application must set the dwTotalSize member of this structure to indicate the amount of memory available to TAPI for returning information.

Note  If the size parameters in the structure are not correct, there is a possibility that data could get overwritten. For more information on setting structure sizes, see the memory allocation topic.
 

-returns

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

LINEERR_INVALADDRESSID, LINEERR_RESOURCEUNAVAIL, LINEERR_INVALLINEHANDLE, LINEERR_STRUCTURETOOSMALL, LINEERR_INVALPOINTER, LINEERR_UNINITIALIZED, LINEERR_NOMEM, LINEERR_OPERATIONUNAVAIL, LINEERR_OPERATIONFAILED.

-see-also

Basic Telephony Services Reference

LINEADDRESSSTATUS

TAPI 2.2 Reference Overview

-remarks

Note

The tapi.h header defines lineGetAddressStatus as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.