Casio IT-2000W User Manual

Page 123

Advertising
background image

123

GetCommState

int GetCommState(idComDev, lpdcb)

int idComDev;

/*Communication device ID */

DCB FAR * lpdcb;

/* Address of the device control block structure */

The GetCommState function will acquire the device control block of the specified device.

< Parameter >

idComDev

: Specifies the device for which the DCB is to be checked. The OpenComm function

returns this value.

lpdcb

: This is a pointer to the DCB structure that receives the current device control block.

The DCB structure defines how to control the device.

< Return value >

Returns zero if the function is terminated normally. Otherwise it returns a value less than zero.

Note on IrDA:

This function will read the parameter values set by the SetCommState function for functions that are

not currently supported.

Advertising