TSPI_phoneGetData

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

LONG 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.

See Also

PHONECAPS, TSPI_phoneGetDevCaps, TSPI_phoneSetData