Nov 3, 2006
Post comments count0
Post likes count3
How do I convert an HRESULT to a Win32 error code?

Everybody knows that you can use the macro to convert a Win32 error code to an , but how do you do the reverse? Let's look at the definition of : If the value is less than or equal to zero, then the macro returns the value unchanged. Otherwise, it takes the lower sixteen bits and combines them with and . How do you reverse this process? H...