in src/Microsoft.VisualStudio.Validation/Verify.cs [159:172]
public static void HResult(int hresult, bool ignorePreviousComCalls = false)
{
if (hresult < 0)
{
if (ignorePreviousComCalls)
{
Marshal.ThrowExceptionForHR(hresult, new IntPtr(-1));
}
else
{
Marshal.ThrowExceptionForHR(hresult);
}
}
}