45 references to Succeeded
System.Windows.Forms (45)
winforms\Managed\System\WinForms\Application.cs (3)
2447if (NativeMethods.Succeeded(UnsafeNativeMethods.CoRegisterMessageFilter(NativeMethods.NullHandleRef, ref msgFilterPtr)) && msgFilterPtr != (IntPtr)0) { 2470if (NativeMethods.Succeeded(hr) && retval != IntPtr.Zero) { 2484if (NativeMethods.Succeeded(hr) && pmsocm != IntPtr.Zero) {
winforms\Managed\System\WinForms\AxHost.cs (4)
1680Debug.Assert(NativeMethods.Succeeded(hr), "Failed in UiDeactivate: " + hr.ToString(CultureInfo.InvariantCulture)); 3500if (NativeMethods.Succeeded(ipo.GetWindow(out hwnd))) { 4192if (NativeMethods.Succeeded(host.GetInPlaceObject().GetWindow(out hwnd))) { 7083if (NativeMethods.Succeeded(ippb.MapPropertyToPage(dispid, out rval))) {
winforms\Managed\System\WinForms\ComponentManagerBroker.cs (1)
200Debug.Assert(NativeMethods.Succeeded(hr), "ICorRuntimeHost failed to return the default domain. The only way that should happen is if it hasn't been started yet, but if it hasn't been started how are we running managed code?");
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2AboutBoxPropertyDescriptor.cs (1)
174Debug.Assert(NativeMethods.Succeeded(hr), "Failed to launch about box.");
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IVsPerPropertyBrowsingHandler.cs (2)
134if (NativeMethods.Succeeded(hr)){ 212if (NativeMethods.Succeeded(hr)){
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2Properties.cs (1)
412if (!NativeMethods.Succeeded(hr)) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (3)
283if (NativeMethods.Succeeded(hr)) { 1280if (NativeMethods.Succeeded(((UnsafeNativeMethods.ISupportErrorInfo)pDisp).InterfaceSupportsErrorInfo(ref g))) { 1285if (NativeMethods.Succeeded(pErrorInfo.GetDescription(ref info))) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (15)
123if (!NativeMethods.Succeeded(pCI.GetMultiTypeInfoCount(ref n)) || n == 0) { 186if (NativeMethods.Succeeded(hr)){ 285if (!NativeMethods.Succeeded(hr)) { 379if (!NativeMethods.Succeeded(hr)) { 392if (!NativeMethods.Succeeded(hr)) { 499if (!NativeMethods.Succeeded(hr)) { 512props[pi.Index] = new Com2PropertyDescriptor(pi.DispId, pi.Name, temp, pi.ReadOnly != PropInfo.ReadOnlyFalse, pi.ValueType, pi.TypeData, !NativeMethods.Succeeded(hr)); 536if (!NativeMethods.Succeeded(hr)) { 624if (!NativeMethods.Succeeded(hr) || pTypeAttr == IntPtr.Zero) { 647if (!NativeMethods.Succeeded(hr) || pFuncDesc == IntPtr.Zero) { 729if (!NativeMethods.Succeeded(hr) || pTypeAttr == IntPtr.Zero) { 765if (!NativeMethods.Succeeded(hr) || pVarDesc == IntPtr.Zero) { 788if (!NativeMethods.Succeeded(hr)) { 887if (!NativeMethods.Succeeded(hr) || pTypeAttr == IntPtr.Zero) { 904if (!NativeMethods.Succeeded(hr) || pVarDesc == IntPtr.Zero) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (1)
99if (NativeMethods.Succeeded(hr) && name != null) {
winforms\Managed\System\WinForms\Control.cs (5)
16484if (NativeMethods.Succeeded(clientSite.GetContainer(out container)) && container is NativeMethods.IHTMLDocument) { 16840if (NativeMethods.Succeeded(hr)) { 17051if (NativeMethods.Succeeded(hr)) { 17326if (NativeMethods.Succeeded(hr) && obj != null) { 18878if (NativeMethods.Succeeded(hr)
winforms\Managed\System\WinForms\HtmlDocument.cs (1)
562if (NativeMethods.Succeeded(hr) && (dispids[0] != NativeMethods.ActiveX.DISPID_UNKNOWN))
winforms\Managed\System\WinForms\HtmlElement.cs (1)
611if (NativeMethods.Succeeded(hr) && (dispids[0] != NativeMethods.ActiveX.DISPID_UNKNOWN))
winforms\Managed\System\WinForms\RichTextBox.cs (1)
3834if (!NativeMethods.Succeeded(hr))
winforms\Managed\System\WinForms\VisualStyles\VisualStyleRenderer.cs (1)
690if (NativeMethods.Succeeded(lastHResult)) {
winforms\Managed\System\WinForms\WebBrowserBase.cs (4)
386if (NativeMethods.Succeeded(hr)) { 492if (NativeMethods.Succeeded(this.AXInPlaceObject.GetWindow(out hwndInPlaceObject))) { 964if (NativeMethods.Succeeded(hr) && ((bits & NativeMethods.ActiveX.OLEMISC_SETCLIENTSITEFIRST) != 0)) { 1067Debug.Assert(NativeMethods.Succeeded(hr), "Failed to UIDeactivate");
winforms\Managed\System\WinForms\WebBrowserSiteBase.cs (1)
227if (NativeMethods.Succeeded(this.Host.AXInPlaceObject.GetWindow(out hwnd))) {