I know the HRESULT_FROM_WIN32 macro to convert a Win32 error code into an HRESULT, is there any way to do the conversion starting from an errno error?
I know the HRESULT_FROM_WIN32 macro to convert a Win32 error code into an HRESULT,
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In short, no.
As of http://msdn.microsoft.com/en-us/library/5814770t%28v=vs.100%29.aspx
Of course you can write your own function with switch-cases which will “translate” error codes.
You can see that there are about 80 errno values defined on windows.