get_communications_state


template <class character>
bool get_communications_state(handle file,
                              data_control_block<character>* buffer)

This function obtains the current settings of a communications device.

Parameters

handle file

The handle of the communications device. This handle is returned by the function create_file.

data_control_block<character>* buffer

A pointer to an object that is updated to contain the current settings of the communications device.

Return

bool

true The function succeeded.
false The call failed.