IOCTL_FARC_ENABLE_RECEIVE

Description:
Reenable the receive of ARCNET packet by the ARCNET-controller (after IOCTL_FARC_DISABLE_RECEIVE)

Parameters:

Parameter Type Description
Input
- - -
Output
- - -

Possible errors (see also Error codes):
E_FARC_INVALID_HANDLE
E_FARC_NOT_INITED
E_FARC_NO_DISABLE
E_FARC_PERFORMING_DISABLE

Example:
Note, that the following example is only a fragment. It is recommended, that the driver is opened in asynchronous mode and a handle to the driver is available.

OVERLAPPED overlapped; DWORD read, err; BOOL ret; overlapped.Offset = 0; overlapped.OffsetHigh = 0; overlapped.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL); ... ret = DeviceIoControl(drvhandle, IOCTL_FARC_ENABLE_RECEIVE, NULL, 0, NULL, 0, &read, &overlapped); if (!ret) { err = GetLastError(); if (err == E_FARC_PENDING) { ret = GetOverlappedResult(drvhandle, &overlapped, &read, TRUE); if (!ret) { err = GetLastError(); // do errorhandling here } else { // Receiver now disabled } } else { // other error occured, perhaps wrong handle } } ...

See also:
DeviceIoControl()
ReadFile()
WriteFile()
IOCTL_FARC_DISABLE_RECEIVE

Back to Programming Guide Contact Copyright and Disclaimer