Converting Error Codes into Strings Using CyAPI.lib - KBA84115

Version: **

 

Question: How do I convert error codes (CCyUSBEndPoint::NtStatus) 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 obtained from NtStatus
‘s’ holds the converted string