Converting Error Codes into Strings Using CyAPI.lib – KBA84115

Version 3

    Version: *A

     

    Translation - Japanese: CyAPI.libを使用してエラーコードを文字列に変換する – KBA84115- Community Translated (JA)

     

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

     

    Answer:

    Error codes can be converted into strings using:

     

    CCyUSBDevice::UsbdStatusString(ULONG stat, PCHAR s)

     

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

     

    Note: Following MSDN link can also be referred:

    https://msdn.microsoft.com/en-us/library/windows/hardware/ff539136(v=vs.85).aspx