16 references to Failed
System.Windows.Forms (16)
winforms\Managed\System\WinForms\AxHost.cs (5)
344if (!NativeMethods.Failed(hr)) { 1367if (NativeMethods.Failed(hr)) { 2107if (NativeMethods.Failed(hr)) { 2384else if (NativeMethods.Failed(hr)) { 4078if (NativeMethods.Failed(hr))
winforms\Managed\System\WinForms\ComponentManagerBroker.cs (1)
204Debug.Assert(NativeMethods.Failed(hr) || domain != null, "ICorRuntimeHost::GetDefaultDomain succeeded but didn't retrn us an app domain.");
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IProvidePropertyBuilderHandler.cs (1)
28if (NativeMethods.Failed(target.MapPropertyToBuilder(dispid, bldrType, pGuidBldr, ref valid))) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyBuilderUITypeEditor.cs (1)
72if (NativeMethods.Failed(propBuilder.ExecuteBuilder(propDesc.DISPID,
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (1)
131if (NativeMethods.Failed(pCI.GetInfoOfIndex(i, 1 /*MULTICLASSINFO_GETTYPEINFO*/, ref temp, 0, 0, IntPtr.Zero, IntPtr.Zero))){
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (1)
169if (dispid[0] == NativeMethods.DISPID_UNKNOWN || NativeMethods.Failed(hr)) {
winforms\Managed\System\WinForms\Control.cs (4)
17151if (NativeMethods.Failed(hr) && hr != NativeMethods.OLE_E_INVALIDRECT && 17158if (NativeMethods.Failed(hr) && hr != NativeMethods.OLE_E_INVALIDRECT && 17573if (NativeMethods.Failed(hr) && hr != NativeMethods.INPLACE_E_NOTOOLSPACE && hr != NativeMethods.E_NOTIMPL) { 18979if (NativeMethods.Failed(hr)) {
winforms\Managed\System\WinForms\DataObject.cs (1)
605if (NativeMethods.Failed(hr)) {
winforms\Managed\System\WinForms\Printing\PrintDialog.cs (1)
511if (NativeMethods.Failed(hr) || data.dwResultAction == NativeMethods.PD_RESULT_CANCEL) {