IOCTL_FARC_GET_RECONS

Description:
query our own and extern reconfigurations, that were detected by the controller

Parameters:

Parameter Type Description
Input
- - -
Output
Interrupts ULONG[2] the number of reconfigurations, that occured since the last initialization of the ARCNET-adapter
  • [0] - our own reconfigurations (MyRECON)
  • [1] - extern reconfigurations

Possible errors (see also Error codes):
E_FARC_INVALID_HANDLE
E_FARC_BUFFER_TOO_SMALL

Requirements:

this function is supported only since SH ARC-USB driver v4.4.

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; ULONG dwRecons[2]; overlapped.Offset = 0; overlapped.OffsetHigh = 0; overlapped.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL); ... ret = DeviceIoControl(drvhandle, IOCTL_FARC_GET_RECONS, NULL, 0, &dwRecons[0], sizeof(dwRecons), &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 { // other error occured, perhaps wrong handle } } printf("MyRecons = %u",dwRecons[0]); printf("External Recons = %u",dwRecons[1]); ...

See also:
DeviceIoControl()
IOCTL_FARC_INIT

Back to Programming Guide Contact Copyright and Disclaimer