21 references to S_OK
UIAutomationClientsideProviders (21)
MS\Internal\AutomationProxies\Accessible.cs (4)
225if(hr == NativeMethods.S_OK && acc != null) 232if (hr != NativeMethods.S_OK || acc == null) 890if ( result != NativeMethods.S_OK) 929if (hr != NativeMethods.S_OK || accObject == null)
MS\Internal\AutomationProxies\ProxySimple.cs (1)
656_IAccessible = Accessible.AccessibleObjectFromWindow(_hwnd, NativeMethods.OBJID_CLIENT, ref acc) == NativeMethods.S_OK ? acc.IAccessible : null;
MS\Internal\AutomationProxies\SafeThemeHandle.cs (1)
46return !IsInvalid ? CloseThemeData(handle) == (IntPtr)NativeMethods.S_OK : true;
MS\Internal\AutomationProxies\WindowsButton.cs (4)
338Accessible.AccessibleObjectFromWindow(hwndRadioButton, NativeMethods.OBJID_CLIENT, ref accRadioButton) != NativeMethods.S_OK || 413if (Accessible.AccessibleObjectFromWindow(hwndParent, NativeMethods.OBJID_CLIENT, ref accParent) != NativeMethods.S_OK || accParent == null) 699if (Accessible.AccessibleObjectFromWindow(hwnd, NativeMethods.OBJID_CLIENT, ref acc) == NativeMethods.S_OK && 739if (Accessible.AccessibleObjectFromWindow(hwnd, NativeMethods.OBJID_CLIENT, ref acc) == NativeMethods.S_OK &&
MS\Internal\AutomationProxies\WindowsFormsHelpers.cs (2)
41if (Accessible.AccessibleObjectFromWindow(hwnd, idObject, ref acc) != NativeMethods.S_OK || acc == null) 87if (Accessible.AccessibleObjectFromWindow(hwnd, NativeMethods.OBJID_CLIENT, ref acc) != NativeMethods.S_OK || acc == null)
MS\Internal\AutomationProxies\WindowsRichEdit.cs (5)
528if (UnsafeNativeMethods.AccessibleObjectFromWindow(WindowHandle, NativeMethods.OBJID_NATIVEOM, ref UnsafeNativeMethods.IID_IDispatch, ref obj) != NativeMethods.S_OK) 581if (range.GetEmbeddedObject(out embeddedObject) == NativeMethods.S_OK && embeddedObject != null) 639if (hr != NativeMethods.S_OK) 667if (hr != NativeMethods.S_OK || med.hGlobal == IntPtr.Zero) 677if (hr != NativeMethods.S_OK || med.hGlobal == IntPtr.Zero)
MS\Internal\AutomationProxies\WindowsStatic.cs (1)
186return Accessible.AccessibleObjectFromWindow(hwnd, NativeMethods.OBJID_CLIENT, ref acc) == NativeMethods.S_OK && acc != null && acc.ChildCount > 0;
MS\Internal\AutomationProxies\WindowsStatusBar.cs (1)
579if (Accessible.AccessibleObjectFromWindow(hwnd, NativeMethods.OBJID_CLIENT, ref acc) != NativeMethods.S_OK || acc == null)
MS\Internal\AutomationProxies\WindowsUpDown.cs (1)
328return hr == NativeMethods.S_OK && acc != null ? acc.Role == AccessibleRole.SpinButton : false;
MS\Internal\AutomationProxies\WinFormsSpinner.cs (1)
191if (Accessible.AccessibleObjectFromWindow(hwndSpin, NativeMethods.OBJID_CLIENT, ref acc) != NativeMethods.S_OK || acc == null)