• Ready for review
  • CanGetLastError

    DWORD CanGetLastError(); DWORD DCanGetLastError(int devno);

    Parameters

    devno
    Index of SJA1000-controller to use (starting with 0).

    Return Values

    If this function succeeds, the return value is TRUE.
    If the function fails, the return value is FALSE. Additional error-information is available through CanGetLastError

    Remarks

    Returns a 32bit error-code of the last function called.

    Code

    Error

    Code

    Error

    0xC0070001

    CANERR_DRIVER_NOT_PRESENT

    0xC0070013

    CANERR_RESOURCE_CONFLICT

    other

    Microsoft error-code; see winerror.h

    Requirements

    OS Versions: Windows CE 4.2 and later.
    Header: gfcan32ce.h
    Link Library: singlecan.lib (one sja1000-controller), dualcan.lib (two or more sja1000-controller)

    See Also

    SJA1000 Can Bus Support