Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob

Converting Error Codes into Strings Using CyAPI.lib – KBA84115

Converting Error Codes into Strings Using CyAPI.lib – KBA84115

Anonymous
Not applicable

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

0 Likes
790 Views
Contributors