Converting Error Codes into Strings Using CyAPI.lib – KBA84115

Version 2

    Version: *A


    Question: How do I convert error codes (CCyUSBEndPoint:: UsbdStatus) into meaningful strings using CyAPI.lib?



    Error codes can be converted into strings using:


    CCyUSBDevice::UsbdStatusString(ULONG stat, PCHAR s)


    ‘stat’ is the UsbdStatus error code
    ‘s’ holds the converted string


    Note: Following MSDN link can also be referred: