I want to test the following code: private bool TestException(Exception ex) { if ((Marshal.GetHRForException(ex) & 0xFFFF) == 0x4005) { return …
Say, if I have a WinAPI that fails with an HRESULT code. Is there a way to convert it to …