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