/// <summary> /// Convert the result of Win32 GetLastError() into a raised exception. /// </summary> public static void ThrowLastError() { ((HRESULT)Win32Error.GetLastError()).ThrowIfFailed(); // Only expecting to call this when we're expecting a failed GetLastError() Assert.Fail(); }
/// <summary> /// Convert the result of Win32 GetLastError() into a raised exception. /// </summary> public static void ThrowLastError() { ((HRESULT)Win32Error.GetLastError()).ThrowIfFailed(); }