Your browser does not allow scripts
Please click here to view a static table of contents without scripts
FT_W32_GetCommTimeouts
Return to Introduction  Previous page  Next page
This function gets the current read and write request timeout parameters for the specified device.

BOOL
FT_W32_GetCommTimeouts
(FT_HANDLE ftHandle, LPFTTIMEOUTS lpftTimeouts)




Parameters
ftHandle
Handle of the device.
lpftTimeouts
Pointer to an FTTIMEOUTS structure to store timeout information.




Return Value
If the function is successful, the return value is nonzero.
If the function is unsuccessful, the return value is zero.



Remarks
For an explanation of how timeouts are used, see FT_W32_SetCommTimeouts.


Example
This example shows how to retrieve the current timeout values.

FT_HANDLE ftHandle; // setup by FT_W32_CreateFile
FTTIMEOUTS ftTS;

if (FT_W32_GetCommTimeouts(ftHandle,&ftTS))
  ; // FT_W32_GetCommTimeouts OK
else
  ; // FT_W32_GetCommTimeouts failed