BOOL
|
FT_W32_GetCommState
|
(FT_HANDLE ftHandle, LPFTDCB lpftDcb)
|
Parameters
ftHandle
|
Handle of the device.
|
lpftDcb
|
Pointer to an FTDCB structure.
|
Return Value
If the function is successful, the return value is nonzero.
If the function is unsuccessful, the return value is zero.
Remarks
The current state of the device is returned in a device control block.
Example
This example shows how to use this function.
FT_HANDLE ftHandle; // setup by FT_W32_CreateFile
FTDCB ftDCB;
if (FT_W32_GetCommState(ftHandle,&ftDCB))
; // FT_W32_GetCommState ok, device state is in ftDCB
else
; // FT_W32_GetCommState failed