16 references to Failed
System.Windows.Forms (16)
winforms\Managed\System\WinForms\AxHost.cs (5)
344
if (!NativeMethods.
Failed
(hr)) {
1367
if (NativeMethods.
Failed
(hr)) {
2107
if (NativeMethods.
Failed
(hr)) {
2384
else if (NativeMethods.
Failed
(hr)) {
4078
if (NativeMethods.
Failed
(hr))
winforms\Managed\System\WinForms\ComponentManagerBroker.cs (1)
204
Debug.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)
28
if (NativeMethods.
Failed
(target.MapPropertyToBuilder(dispid, bldrType, pGuidBldr, ref valid))) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyBuilderUITypeEditor.cs (1)
72
if (NativeMethods.
Failed
(propBuilder.ExecuteBuilder(propDesc.DISPID,
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (1)
131
if (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)
169
if (dispid[0] == NativeMethods.DISPID_UNKNOWN || NativeMethods.
Failed
(hr)) {
winforms\Managed\System\WinForms\Control.cs (4)
17151
if (NativeMethods.
Failed
(hr) && hr != NativeMethods.OLE_E_INVALIDRECT &&
17158
if (NativeMethods.
Failed
(hr) && hr != NativeMethods.OLE_E_INVALIDRECT &&
17573
if (NativeMethods.
Failed
(hr) && hr != NativeMethods.INPLACE_E_NOTOOLSPACE && hr != NativeMethods.E_NOTIMPL) {
18979
if (NativeMethods.
Failed
(hr)) {
winforms\Managed\System\WinForms\DataObject.cs (1)
605
if (NativeMethods.
Failed
(hr)) {
winforms\Managed\System\WinForms\Printing\PrintDialog.cs (1)
511
if (NativeMethods.
Failed
(hr) || data.dwResultAction == NativeMethods.PD_RESULT_CANCEL) {