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