Platform SDK: TAPI

TSPI_phoneGetData

The TSPI_phoneGetData function uploads the information from the specified location in the open phone device to the specified buffer.

LONG TSPIAPI TSPI_phoneGetData(
  HDRVPHONE hdPhone,  
  DWORD dwDataID,     
  LPVOID lpData,      
  DWORD dwSize        
);

Parameters

hdPhone
The handle to the phone to be queried.
dwDataID
Specifies where in the phone device the buffer is to be uploaded from.
lpData
A pointer to the memory buffer where the data is to be uploaded to.
dwSize
The size of the data buffer in bytes.

Return Values

Returns zero if the function succeeds, or an error number if an error occurs. Possible return values are as follows:

PHONEERR_INVALPHONEHANDLE, PHONEERR_OPERATIONFAILED, PHONEERR_INVALPHONESTATE, PHONEERR_OPERATIONUNAVAIL, PHONEERR_INVALDATAID, PHONEERR_RESOURCEUNAVAIL.

Remarks

The TSPI_phoneGetData function uploads a maximum of dwSize bytes from the phone device into lpData. If dwSize is zero, nothing is copied. The size of each data area is listed in the phone's PHONECAPS structure.

Requirements

  Windows NT/2000: Requires Windows NT 4.0 SP3 or later.
  Windows 95/98: Requires Windows 95 or later.
  Version: Requires TAPI 1.3 or later.
  Header: Declared in Tspi.h.

See Also

PHONECAPS, TSPI_phoneGetDevCaps, TSPI_phoneSetData