21 references to S_OK
UIAutomationClientSideProviders (21)
MS\Internal\AutomationProxies\Accessible.cs (4)
210
if(hr == NativeMethods.
S_OK
&& acc != null)
217
if (hr != NativeMethods.
S_OK
|| acc == null)
841
if ( result != NativeMethods.
S_OK
)
877
if (hr != NativeMethods.
S_OK
|| accObject == null)
MS\Internal\AutomationProxies\ProxySimple.cs (1)
637
_IAccessible = Accessible.AccessibleObjectFromWindow(_hwnd, NativeMethods.OBJID_CLIENT, ref acc) == NativeMethods.
S_OK
? acc.IAccessible : null;
MS\Internal\AutomationProxies\SafeThemeHandle.cs (1)
30
return !IsInvalid ? CloseThemeData(handle) == (IntPtr)NativeMethods.
S_OK
: true;
MS\Internal\AutomationProxies\WindowsButton.cs (4)
318
Accessible.AccessibleObjectFromWindow(hwndRadioButton, NativeMethods.OBJID_CLIENT, ref accRadioButton) != NativeMethods.
S_OK
||
393
if (Accessible.AccessibleObjectFromWindow(hwndParent, NativeMethods.OBJID_CLIENT, ref accParent) != NativeMethods.
S_OK
|| accParent == null)
679
if (Accessible.AccessibleObjectFromWindow(hwnd, NativeMethods.OBJID_CLIENT, ref acc) == NativeMethods.
S_OK
&&
719
if (Accessible.AccessibleObjectFromWindow(hwnd, NativeMethods.OBJID_CLIENT, ref acc) == NativeMethods.
S_OK
&&
MS\Internal\AutomationProxies\WindowsFormsHelpers.cs (2)
30
if (Accessible.AccessibleObjectFromWindow(hwnd, idObject, ref acc) != NativeMethods.
S_OK
|| acc == null)
76
if (Accessible.AccessibleObjectFromWindow(hwnd, NativeMethods.OBJID_CLIENT, ref acc) != NativeMethods.
S_OK
|| acc == null)
MS\Internal\AutomationProxies\WindowsRichEdit.cs (5)
483
if (UnsafeNativeMethods.AccessibleObjectFromWindow(WindowHandle, NativeMethods.OBJID_NATIVEOM, ref UnsafeNativeMethods.IID_IDispatch, ref obj) != NativeMethods.
S_OK
)
534
if (range.GetEmbeddedObject(out embeddedObject) == NativeMethods.
S_OK
&& embeddedObject != null)
592
if (hr != NativeMethods.
S_OK
)
624
if (hr != NativeMethods.
S_OK
|| med.hGlobal == IntPtr.Zero)
634
if (hr != NativeMethods.
S_OK
|| med.hGlobal == IntPtr.Zero)
MS\Internal\AutomationProxies\WindowsStatic.cs (1)
173
return Accessible.AccessibleObjectFromWindow(hwnd, NativeMethods.OBJID_CLIENT, ref acc) == NativeMethods.
S_OK
&& acc != null && acc.ChildCount > 0;
MS\Internal\AutomationProxies\WindowsStatusBar.cs (1)
565
if (Accessible.AccessibleObjectFromWindow(hwnd, NativeMethods.OBJID_CLIENT, ref acc) != NativeMethods.
S_OK
|| acc == null)
MS\Internal\AutomationProxies\WindowsUpDown.cs (1)
307
return hr == NativeMethods.
S_OK
&& acc != null ? acc.Role == AccessibleRole.SpinButton : false;
MS\Internal\AutomationProxies\WinFormsSpinner.cs (1)
180
if (Accessible.AccessibleObjectFromWindow(hwndSpin, NativeMethods.OBJID_CLIENT, ref acc) != NativeMethods.
S_OK
|| acc == null)