Compartilhar via


TSPI_lineGetAddressID (Windows CE 5.0)

Send Feedback

This function returns the address identifier associated with address in a different format on the specified line.

LONG TSPIAPI TSPI_lineGetAddressID(HDRVLINEhdLine,LPDWORDlpdwAddressID,DWORDdwAddressMode,LPCWSTRlpsAddress,DWORDdwSize);

Parameters

  • hdLine
    Service provider's handle to the line whose address is to be retrieved.
  • lpdwAddressID
    Pointer to a DWORD-sized memory location where the address identifier is returned.
  • dwAddressMode
    Address mode of the address contained in lpsAddress. The dwAddressMode parameter is allowed to have one and only one of the LINEADDRESSMODE constants.
  • lpsAddress
    Pointer to a data structure holding the address assigned to the specified line device. The format of the address is determined by the dwAddressMode parameter. If it is LINEADDRESSMODE_DIALABLEADDR, the lpsAddress parameter uses the common dialable number format and is NULL terminated.
  • dwSize
    Size of the address contained in lpsAddress. The parameter dwSize must be set to the length of the string (plus one for the NULL) if LINEADDRESSMODE_DIALABLEADDR is used. If an extended LINEADDRESSMODE is used, the length should match the size of whatever is actually passed in (the DLL checks to be sure it can read the number of bytes specified from the given pointer).

Return Values

Returns zero if the function succeeds or an error number if an error occurs. The following table shows the return values for this function.

Value Description
LINEERR_INVALLINEHANDLE The handle to the line is invalid.
LINEERR_OPERATIONUNAVAIL The operation is unavailable.
LINEERR_INVALADDRESS The address is invalid.
LINEERR_OPERATIONFAILED The operation failed.
LINEERR_NOMEM Not enough memory is available.
LINEERR_RESOURCEUNAVAIL The resource is unavailable.

Remarks

This function is used to map a phone number (address) assigned to a line device back to its dwAddressID (in the range from zero through the number of addresses minus one) that is returned in the line's device capabilities.

Requirements

OS Versions: Windows CE 3.0 and later.
Header: Tapicomn.h.
Link Library: Coredll.lib.

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.