24 references to E_FAIL
System.Private.Windows.Core (4)
Windows\Win32\Graphics\GdiPlus\StatusExtensions.cs (4)
26return new ExternalException(SR.GdiplusGenericError, (int)HRESULT.E_FAIL); 45return new ExternalException(SR.GdiplusGenericError, (int)HRESULT.E_FAIL); 76return new ExternalException(SR.GdiplusUnsupportedGdiplusVersion, (int)HRESULT.E_FAIL); 79return new ExternalException(SR.GdiplusNotInitialized, (int)HRESULT.E_FAIL);
System.Windows.Forms (14)
System\Windows\Forms\Accessibility\AccessibleObject.cs (1)
2555return HRESULT.E_FAIL;
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (1)
88return HRESULT.E_FAIL;
System\Windows\Forms\ActiveX\AxHost.cs (2)
1064return HRESULT.E_FAIL; 2030HRESULT hr = HRESULT.E_FAIL;
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (5)
757return HRESULT.E_FAIL; 804hr = HRESULT.E_FAIL; 1086errorCode = e is ExternalException ee ? (HRESULT)ee.ErrorCode : HRESULT.E_FAIL; 1359return HRESULT.E_FAIL; 1972return HRESULT.E_FAIL;
System\Windows\Forms\Controls\RichTextBox\RichTextBox.OleCallback.cs (3)
35return HRESULT.E_FAIL; 83return HRESULT.E_FAIL; 185return e.Effect == DragDropEffects.None ? HRESULT.E_FAIL : HRESULT.S_OK;
System\Windows\Forms\Printing\PrintPreviewControl.PrintPreviewControlAccessibleObject.cs (2)
99return HRESULT.E_FAIL; 156return HRESULT.E_FAIL;
System.Windows.Forms.Design (1)
System\ComponentModel\Design\MultilineStringEditor.OleCallback.cs (1)
120return success ? HRESULT.S_OK : HRESULT.E_FAIL;
System.Windows.Forms.Interop.Tests (2)
AccessibleObjectTests.cs (2)
502AssertSuccess(Test_IOleWindowGetWindow(o, IntPtr.Zero, HRESULT.E_FAIL)); 512AssertSuccess(Test_IOleWindowGetWindow(o, IntPtr.Zero, HRESULT.E_FAIL));
System.Windows.Forms.Primitives (1)
Windows\Win32\PInvoke.UiaRaiseNotificationEvent.cs (1)
30return HRESULT.E_FAIL;
System.Windows.Forms.Tests (2)
System\Windows\Forms\AxHostTests.cs (2)
1594iPicture.get_CurDC(out HDC hdc).Should().Be(HRESULT.E_FAIL); 1708iPicture.get_CurDC(out HDC _).Should().Be(HRESULT.E_FAIL);