754 references to Value
ComDisabled.Tests (3)
Control.ActiveXImplTests.cs (3)
26HRESULT hr = persistStream.Save(istream.Value, fClearDirty: BOOL.FALSE); 30istream.Value->Seek(0, SeekOrigin.Begin); 31hr = persistStream.Load(istream.Value);
System.Private.Windows.Core (41)
System\Private\Windows\Ole\ClipboardCore.cs (1)
245dataObject = TDataObject.Create(proxyDataObject.Value);
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (15)
37return nativeDataObject.Value->DAdvise(pformatetc, advf, pAdvSink, pdwConnection); 43return nativeDataObject.Value->DUnadvise(dwConnection); 49return nativeDataObject.Value->EnumDAdvise(ppenumAdvise); 55return nativeDataObject.Value->EnumFormatEtc(dwDirection, ppenumFormatEtc); 61return nativeDataObject.Value->GetData(pformatetcIn, pmedium); 67return nativeDataObject.Value->GetDataHere(pformatetc, pmedium); 73return nativeDataObject.Value->QueryGetData(pformatetc); 79return nativeDataObject.Value->GetCanonicalFormatEtc(pformatectIn, pformatetcOut); 85return nativeDataObject.Value->SetData(pformatetc, pmedium, fRelease); 375pStream.Value->Stat(out Com.STATSTG sstg, (uint)Com.STATFLAG.STATFLAG_DEFAULT); 387pStream.Value->Read((byte*)ptr, (uint)sstg.cbSize, null); 550nativeDataObject.Value->EnumFormatEtc((uint)DATADIR.DATADIR_GET, enumFORMATETC).AssertSuccess(); 560enumFORMATETC.Value->Reset(); 564while (enumFORMATETC.Value->Next(1, &formatEtc) == HRESULT.S_OK) 645HRESULT hr = nativeDataObject.Value->QueryGetData(formatEtc);
System\Private\Windows\Ole\Composition.NativeToRuntimeAdapter.cs (9)
36return nativeDataObject.Value->DAdvise(nativeFormat, (uint)advf, nativeAdviseSink, (uint*)pConnection); 43nativeDataObject.Value->DUnadvise((uint)connection).ThrowOnFailure(); 50HRESULT result = nativeDataObject.Value->EnumDAdvise(nativeStatData); 59if (nativeDataObject.Value->EnumFormatEtc((uint)direction, nativeFormat).Failed) 70HRESULT result = nativeDataObject.Value->GetCanonicalFormatEtc(Unsafe.As<FORMATETC, Com.FORMATETC>(ref formatIn), out Com.FORMATETC nativeFormat); 80nativeDataObject.Value->GetData(&nativeFormat, &nativeMedium).ThrowOnFailure(); 90nativeDataObject.Value->GetDataHere(&nativeFormat, &nativeMedium).ThrowOnFailure(); 98return nativeDataObject.Value->QueryGetData(Unsafe.As<FORMATETC, Com.FORMATETC>(ref format)); 106HRESULT result = nativeDataObject.Value->SetData(&nativeFormat, &nativeMedium, release);
System\Private\Windows\Ole\DragDropHelper.cs (6)
68dropTargetHelper.Value->DragEnter(targetWindowHandle, dataObjectScope, in point, effect); 82dropTargetHelper.Value->DragLeave(); 98dropTargetHelper.Value->DragOver(&point, (DROPEFFECT)(uint)e.Effect); 115dropTargetHelper.Value->Drop(dataObjectScope, in point, (DROPEFFECT)(uint)e.Effect); 283if (dragSourceHelper.Value->SetFlags((uint)DSH_FLAGS.DSH_ALLOWDROPDESCRIPTIONTEXT).Failed) 290if (dragSourceHelper.Value->InitializeFromBitmap(shDragImage, dataObjectScope).Failed)
Windows\Win32\System\Com\AgileComPointer.cs (4)
108return currentUnknown.Value == otherUnknown.Value; 116return currentUnknown.Value == otherUnknown.Value;
Windows\Win32\System\Com\ComHelpers.cs (4)
161where TInterface : unmanaged, IComIID => TryGetObjectForIUnknown(comScope.Value, out @object); 258return ccw.Value == unknown; 283where TInterface : unmanaged, IComIID => GetObjectForIUnknown(comScope.Value); 343typelib.Value->GetTypeInfoOfGuid(interfaceId, typeInfo).ThrowOnFailure();
Windows\Win32\System\Com\ComScope.cs (2)
63hr = ((IUnknown*)Value)->QueryInterface(IID.Get<TTo>(), scope); 73((IUnknown*)Value)->QueryInterface(IID.Get<TTo>(), scope).ThrowOnFailure();
System.Private.Windows.Core.Tests (3)
System\Private\Windows\Ole\ClipboardCoreTests.cs (3)
55using AgileComPointer<IDataObject> agileComPointer = new(iDataObject.Value, takeOwnership: false); 60Assert.Equal((nint)iDataObject.Value, (nint)fetched.Value);
System.Windows.Forms (392)
System\Windows\Forms\Accessibility\AccessibleObject.cs (20)
301result = accessible.Value->get_accParent(&dispatch); 455result = accessible.Value->get_accFocus(out VARIANT focus); 523result = accessible.Value->get_accSelection(out VARIANT selection); 558result = accessible.Value->accHitTest(x, y, out VARIANT child); 1159? accessible.GetInterface().Value 1600return accessible.Value->accDoDefaultAction(varChild); 1675return accessible.Value->accHitTest(xLeft, yTop, pvarChild); 1727return accessible.Value->accLocation(pxLeft, pyTop, pcxWidth, pcyHeight, varChild); 1779return accessible.Value->accNavigate(navDir, varStart, pvarEndUpAt); 1814return accessible.Value->accSelect(flagsSelect, varChild); 1829result = accessible.Value->accDoDefaultAction((VARIANT)(int)PInvoke.CHILDID_SELF); 1881result = accessible.Value->get_accChildCount(out int count); 1889return accessible.Value->get_accChild(varChild, ppdispChild); 1925result = accessible.Value->get_accChildCount(pcountChildren); 2352return accessible.Value->get_accSelection(pvarChildren); 2543return oleWindow.Value->GetWindow(phwnd); 2568return oleWindow.Value->ContextSensitiveHelp(fEnterMode); 2638result = accessible.Value->accNavigate((int)navdir, CHILDID_SELF, out VARIANT endUpAt); 2651result = accessible.Value->accSelect((int)flags, CHILDID_SELF); 2685return accessible.GetInterface<IDispatch>().Value;
System\Windows\Forms\Accessibility\AccessibleObject.EnumVariantObject.cs (6)
50enumVariant.Value->Reset(); 66enumVariant.Value->Skip(celt); 131enumVariant.Value->Next(celt, rgVar, &fetched); 171enumVariant.Value->Reset(); 172enumVariant.Value->Skip(i); 173enumVariant.Value->Next(1, rgVar + i, &fetched);
System\Windows\Forms\Accessibility\AccessibleObjectExtensions.cs (15)
35result = accessible.Value->accLocation( 60result = accessible.Value->get_accDefaultAction(child, &bstr); 79result = accessible.Value->accDoDefaultAction(child); 94accessible.Value->get_accDescription(child, &description); 114result = accessible.Value->get_accHelp(child, &bstr); 134result = accessible.Value->get_accKeyboardShortcut(child, &bstr); 154result = accessible.Value->get_accName(child, &bstr); 176result = accessible.Value->put_accName(child, name); 193result = accessible.Value->get_accRole(child, &role); 212result = accessible.Value->get_accState(child, &state); 230result = accessible.Value->get_accValue(child, &bstr); 246result = accessible.Value->put_accValue(child, value); 267result = accessible.Value->get_accHelpTopic(&file, child, out int topicId); 286result = accessible.Value->accSelect((int)flags, child); 297result = accessible.Value->get_accChildCount(out int count);
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (2)
489inPlaceObject.Value->UIDeactivate().AssertSuccess(); 669hr = oleObject.Value->GetClientSite(clientSite);
System\Windows\Forms\ActiveX\AxHost.AxPerPropertyBrowsingEnum.cs (1)
103HRESULT hr = propertyBrowsing.Value->GetPredefinedValue(_target.Dispid, cookie, &var);
System\Windows\Forms\ActiveX\AxHost.AxPropertyDescriptor.cs (2)
141if (propertyBrowsing.Value->MapPropertyToPage(dispid, &rval).Succeeded) 298hr = propertyBrowsing.Value->GetPredefinedStrings(dispid, &caStrings, &caCookies);
System\Windows\Forms\ActiveX\AxHost.ConnectionPointCookie.cs (1)
124hr = connectionPoint.Value->Unadvise(_cookie);
System\Windows\Forms\ActiveX\AxHost.cs (47)
243HRESULT hr = oleObject.Value->GetMiscStatus(DVASPECT.DVASPECT_CONTENT, out OLEMISC bits); 811oleControl.Value->OnAmbientPropertyChange(dispid).AssertSuccess(); 1127HRESULT hr = oleObject.Value->SetExtent(DVASPECT.DVASPECT_CONTENT, (SIZE*)&size); 1135oleObject.Value->GetExtent(DVASPECT.DVASPECT_CONTENT, (SIZE*)&size).AssertSuccess(); 1136oleObject.Value->SetExtent(DVASPECT.DVASPECT_CONTENT, (SIZE*)&size).AssertSuccess(); 1146oleObject.Value->GetExtent(DVASPECT.DVASPECT_CONTENT, (SIZE*)&size).AssertSuccess(); 1167inPlaceObject.Value->SetObjectRects(&posRect, &clipRect).ThrowOnFailure(); 1480return inPlaceObject.Value->InPlaceDeactivate(); 1699hr = activeObject.Value->TranslateAccelerator(&win32Message); 1749if (oleControl.Value->GetControlInfo(&ctlInfo).Failed) 1773oleControl.Value->OnMnemonic(&msg).AssertSuccess(); 1885persistStream.Value->Save(stream, fClearDirty: true).AssertSuccess(); 1890persistStreamInit.Value->Save(stream, fClearDirty: true).AssertSuccess(); 1912persistPropBag.Value->Save(propertyBag, fClearDirty: true, fSaveAllProperties: true).AssertSuccess(); 2036hr = persistStream.Value->IsDirty(); 2043hr = persistStreamInit.Value->IsDirty(); 2050hr = persistStorage.Value->IsDirty(); 2154oleObject.Value->DoVerb( 2171oleControl.Value->FreezeEvents(true).AssertSuccess(); 2176oleControl.Value->FreezeEvents(false).AssertSuccess(); 2190return inPlaceObject.Value->UIDeactivate(); 2245hr = factory.Value->GetLicInfo(&licInfo); 2249factory.Value->RequestLicKey(0, &key); 2287hr = factory.Value->CreateInstanceLic(null, null, IID.Get<IUnknown>(), new BSTR(license), unknown); 2350hr = categorizeProperties.Value->MapPropertyToCategory(dispid, &propcat); 2369hr = categorizeProperties.Value->GetCategoryName(propcat, (int)PInvokeCore.GetThreadLocale(), &name); 2749persistStreamInit.Value->InitNew().AssertSuccess(); 2765persistStoragePtr.Value->InitNew(storage).AssertSuccess(); 2773persistPropBag.Value->InitNew().AssertSuccess(); 2789persistStream.Value->Load(stream).AssertSuccess(); 2801persistStreamInit.Value->Load(stream).AssertSuccess(); 2825persistStorage.Value->Load(storage).AssertSuccess(); 2838persistPropBag.Value->Load(propBag, pErrorLog: null).AssertSuccess(); 2946return pages.Value->GetPages(&uuids).Succeeded && uuids.cElems > 0; 3014if (hr.Failed || pages.Value->GetPages(&uuids).Failed || uuids.cElems == 0) 3140if (inPlaceObject.Value->GetWindow(&hwnd).Succeeded) 3420oleObject.Value->SetClientSite(null).AssertSuccess(); 3474oleObject.Value->SetClientSite(clientSite).AssertSuccess(); 3483oleObject.Value->SetClientSite(clientSite).AssertSuccess(); 3768if ((bool)dispatch.Value->GetProperty(PInvokeCore.DISPID_FONT_BOLD)) 3773if ((bool)dispatch.Value->GetProperty(PInvokeCore.DISPID_FONT_ITALIC)) 3778if ((bool)dispatch.Value->GetProperty(PInvokeCore.DISPID_FONT_UNDER)) 3783if ((bool)dispatch.Value->GetProperty(PInvokeCore.DISPID_FONT_STRIKE)) 3788if ((short)dispatch.Value->GetProperty(PInvokeCore.DISPID_FONT_WEIGHT) >= 700) 3793using BSTR name = (BSTR)dispatch.Value->GetProperty(PInvokeCore.DISPID_FONT_NAME); 3797(float)(CY)dispatch.Value->GetProperty(PInvokeCore.DISPID_FONT_SIZE), 3800(byte)(short)dispatch.Value->GetProperty(PInvokeCore.DISPID_FONT_CHARSET));
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (3)
307if (inPlaceObject.Value->GetWindow(&hwnd).Succeeded) 439return inPlaceObject.Value->UIDeactivate(); 462inPlaceObject.Value->SetObjectRects(lprcPosRect, &clipRect).ThrowOnFailure();
System\Windows\Forms\ActiveX\AxHost.State.cs (2)
266storage.Value->Commit(0); 273lockBytes.Value->Stat(out STATSTG stat, (uint)STATFLAG.STATFLAG_NONAME);
System\Windows\Forms\ActiveX\Control.ActiveXFontMarshaler.cs (1)
61return hr.Failed ? DefaultFont : Font.FromHfont(nativeFont.Value->hFont);
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (29)
216property.Value = Font.FromHfont(font.Value->hFont); 307return adviseHolder.Value->Advise(pAdvSink, token); 324clientSite.Value->SaveObject(); 598hr = dispatch.Value->TryGetProperty(dispid, &property, PInvoke.LCID.USER_DEFAULT.RawValue); 799hr = inPlaceSite.Value->CanInPlaceActivate(); 810inPlaceSite.Value->OnInPlaceActivate(); 825hr = inPlaceSite.Value->GetWindow(&hwndParent); 839inPlaceSite.Value->GetWindowContext( 864clientSite.Value->ShowObject(); 885inPlaceSite.Value->OnUIActivate(); 899inPlaceFrame.Value->SetActiveObject(activeObject, (PCWSTR)null); 903inPlaceUiWindow.Value->SetActiveObject(activeObject, (PCWSTR)null); 907hr = inPlaceFrame.Value->SetBorderSpace(null); 918hr = inPlaceUiWindow.Value->SetBorderSpace(null); 955inPlaceSite.Value->OnInPlaceDeactivate(); 1317HRESULT hr = inPlaceFrame.Value->SetBorderSpace(null); 1335controlSite.Value->OnFocus(focus); 1422if (hr.Failed || container.Value->FindConnectionPoint(eventInterface.GUID, connectionPoint).Failed) 1427hr = connectionPoint.Value->Advise(pQaContainer->pUnkEventSink, out pQaControl->dwEventCookie); 1596holder.Value->SendOnSave(); 1709clientSite.Value->OnPosRectChange(&posRect); 1733clientSite.Value->RequestNewObjectLayout(); 1925return controlSite.Value->TranslateAccelerator(lpmsg, keyState); 1943window.Value->SetActiveObject(null, (PCWSTR)null); 1952frame.Value->SetActiveObject(null, (PCWSTR)null); 1960inPlaceSite.Value->OnUIDeactivate(fUndoable: BOOL.FALSE); 1976return holder.Value->Unadvise(dwConnection); 2024inPlaceSite.Value->OnPosRectChange(&rect); 2065controlSite.Value->OnControlInfoChanged();
System\Windows\Forms\ActiveX\Control.AxSourcingSite.cs (1)
41clientSite.Value->GetContainer(container);
System\Windows\Forms\ActiveX\Control_ActiveXControlInterfaces.cs (1)
158*ppClientSite = ActiveXInstance.GetClientSite().Value;
System\Windows\Forms\Application.ComponentManager.cs (7)
167component.Value->OnEnterState(uStateID, true); 187component.Value->OnEnterState(uStateID, false); 233if (!component.Value->FContinueMessageLoop(uReason, pvLoopData, &msg)) 257if (!component.Value->FPreTranslateMessage(&msg)) 279continueIdle |= idleComponent.Value->FDoIdle(msoidlef.All); 284if (!component.Value->FContinueMessageLoop(uReason, pvLoopData, pMsgPeeked: null)) 391*ppic = component.GetInterface().Value;
System\Windows\Forms\Application.ComponentThreadContext.cs (2)
114if (serviceProvider.Value->QueryService(&sid, &iid, serviceHandle).Failed || serviceHandle.IsNull) 246return ComHelpers.WrapsManagedObject(this, component.Value);
System\Windows\Forms\ComponentModel\COM2Interop\Com2AboutBoxPropertyDescriptor.AboutBoxUITypeEditor.cs (1)
25hr = dispatch.Value->Invoke(
System\Windows\Forms\ComponentModel\COM2Interop\COM2ComponentEditor.cs (4)
21hr = propertyBrowsing.Value->MapPropertyToPage(PInvoke.MEMBERID_NIL, &guid); 34hr = propertyPages.Value->GetPages(&uuids); 59hr = propertyBrowsing.Value->MapPropertyToPage(PInvoke.MEMBERID_NIL, &guid); 90hr = propertyPages.Value->GetPages(&uuids);
System\Windows\Forms\ComponentModel\COM2Interop\COM2FontConverter.cs (1)
40HFONT fontHandle = iFont.Value->hFont;
System\Windows\Forms\ComponentModel\COM2Interop\COM2ICategorizePropertiesHandler.cs (2)
23if (categorizeProperties.Value->MapPropertyToCategory(dispid, &categoryId).Failed) 50return categorizeProperties.Value->GetCategoryName(categoryId, (int)PInvokeCore.GetThreadLocale(), &categoryName).Succeeded
System\Windows\Forms\ComponentModel\COM2Interop\COM2IManagedPerPropertyBrowsingHandler.cs (1)
39Attribute[] attributes = GetComponentAttributes(propertyBrowsing.Value, sender.DISPID);
System\Windows\Forms\ComponentModel\COM2Interop\Com2IPerPropertyBrowsingHandler.Com2IPerPropertyBrowsingEnum.cs (1)
106hr = ppb.Value->GetPredefinedValue(Target.DISPID, cookie, &variant);
System\Windows\Forms\ComponentModel\COM2Interop\COM2IPerPropertyBrowsingHandler.cs (1)
108hr = propertyBrowsing.Value->GetPredefinedStrings(sender.DISPID, &caStrings, &caCookies);
System\Windows\Forms\ComponentModel\COM2Interop\COM2IVsPerPropertyBrowsingHandler.cs (11)
22hr = browsing.Value->DisplayChildProperties(property.DISPID, &hide); 64hr = propertyBrowsing.Value->GetLocalizedPropertyInfo(sender.DISPID, PInvokeCore.GetThreadLocale(), null, &helpString); 89hr = propertyBrowsing.Value->HideProperty(sender.DISPID, &hide); 100hr = propertyBrowsing.Value->DisplayChildProperties(sender.DISPID, &display); 118hr = propertyBrowsing.Value->CanResetPropertyValue(sender.DISPID, &canReset); 136hr = propertyBrowsing.Value->GetLocalizedPropertyInfo(sender.DISPID, PInvokeCore.GetThreadLocale(), &name, null); 154hr = propertyBrowsing.Value->IsPropertyReadOnly(sender.DISPID, &readOnly); 175hr = propertyBrowsing.Value->DisplayChildProperties(sender.DISPID, &result); 193hr = propertyBrowsing.Value->CanResetPropertyValue(dispid, &canReset); 196propertyBrowsing.Value->ResetPropertyValue(dispid); 211hr = propertyBrowsing.Value->HasDefaultValue(sender.DISPID, &isDefault);
System\Windows\Forms\ComponentModel\COM2Interop\COM2PictureConverter.cs (4)
49picture.Value->get_Handle(out OLE_HANDLE handle).ThrowOnFailure(); 61picture.Value->get_Type(out PICTYPE type).ThrowOnFailure(); 123picture.Value->get_Handle(out _lastNativeHandle).ThrowOnFailure(); 125picture.Value->QueryInterface(IID.Get<IUnknown>(), (void**)&unknown).ThrowOnFailure();
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyBuilderUITypeEditor.cs (1)
58hr = propertyBuilder.Value->ExecuteBuilder(
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (4)
620hr = dispatch.Value->TryGetProperty(DISPID, &nativeValue, PInvokeCore.GetThreadLocale()); 855hr = dispatch.Value->SetPropertyValue(DISPID, nativeValue, out string? errorText); 876if (iSupportErrorInfo.Value->InterfaceSupportsErrorInfo(IID.Get<IDispatch>()).Succeeded) 884hr = errorInfo.Value->GetDescription(&description);
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (6)
75provideClassInfo.Value->GetClassInfo(&typeInfo); 84dispatch.Value->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), &typeInfo); 102if (classInfo.Value->GetMultiTypeInfoCount(&count).Succeeded && count > 0) 108if (classInfo.Value->GetInfoOfIndex( 365hr = refTypeInfo.Value->GetTypeAttr(&pTypeAttr); 394refTypeInfo.Value->ReleaseTypeAttr(pTypeAttr);
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (2)
77if (propertyBrowsing.Value->GetClassName(&className).Succeeded && !className.IsNull) 90typeInfo.Value->GetDocumentation(
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildListUiaProvider.cs (1)
46result = accessible.Value->accHitTest((int)x, (int)y, out VARIANT child);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (4)
1677textDocument.Value->Range(WindowText.Length - 1, WindowText.Length - 1, windowTextRange).ThrowOnFailure(); 1680windowTextRange.Value->ScrollIntoView((int)tomConstants.tomEnd).ThrowOnFailure(); 1694textDocument.Value->Range(selStart, selStart + selLength, selectionTextRange).ThrowOnFailure(); 1695selectionTextRange.Value->ScrollIntoView((int)tomConstants.tomStart).ThrowOnFailure();
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (44)
40_hashCode = HashCode.Combine((nint)scope.Value); 81htmlDoc2.Value->get_activeElement(&iHtmlElement).ThrowOnFailure(); 92htmlDoc2.Value->get_body(&iHtmlElement).ThrowOnFailure(); 103htmlDoc2.Value->get_domain(&domain).ThrowOnFailure(); 112htmlDoc2.Value->put_domain(newValue).ThrowOnFailure(); 128htmlDoc2.Value->get_title(&title).ThrowOnFailure(); 135htmlDoc2.Value->put_title(newValue).ThrowOnFailure(); 145htmlDoc2.Value->get_location(htmlLocation).ThrowOnFailure(); 152htmlLocation.Value->get_href(&href).ThrowOnFailure(); 164htmlDoc2.Value->get_parentWindow(&iHTMLWindow2).ThrowOnFailure(); 177htmlDoc2.Value->get_bgColor(&color).ThrowOnFailure(); 190htmlDoc2.Value->put_bgColor(variantColor).ThrowOnFailure(); 202htmlDoc2.Value->get_fgColor(&color).ThrowOnFailure(); 215htmlDoc2.Value->put_fgColor(variantColor).ThrowOnFailure(); 227htmlDoc2.Value->get_linkColor(&color).ThrowOnFailure(); 240htmlDoc2.Value->put_linkColor(variantColor).ThrowOnFailure(); 252htmlDoc2.Value->get_alinkColor(&color).ThrowOnFailure(); 265htmlDoc2.Value->put_alinkColor(variantColor).ThrowOnFailure(); 277htmlDoc2.Value->get_vlinkColor(&color).ThrowOnFailure(); 290htmlDoc2.Value->put_vlinkColor(variantColor).ThrowOnFailure(); 300htmlDoc4.Value->hasFocus(&focused).ThrowOnFailure(); 313htmlDoc2.Value->get_cookie(&cookie).ThrowOnFailure(); 320htmlDoc2.Value->put_cookie(newValue).ThrowOnFailure(); 330htmlDoc3.Value->get_dir(&dir).ThrowOnFailure(); 337htmlDoc3.Value->put_dir(newValue).ThrowOnFailure(); 347htmlDoc2.Value->get_charset(&charset).ThrowOnFailure(); 354htmlDoc2.Value->put_charset(newValue).ThrowOnFailure(); 364htmlDoc2.Value->get_defaultCharset(&charset).ThrowOnFailure(); 375htmlDoc2.Value->get_all(&iHTMLElementCollection).ThrowOnFailure(); 386htmlDoc2.Value->get_links(&iHTMLElementCollection).ThrowOnFailure(); 397htmlDoc2.Value->get_images(&iHTMLElementCollection).ThrowOnFailure(); 408htmlDoc2.Value->get_forms(&iHTMLElementCollection).ThrowOnFailure(); 424htmlDoc2.Value->write(scope); 436htmlDoc2.Value->execCommand(bstrCommand, showUI, variantValue, &varBool).ThrowOnFailure(); 443htmlDoc4.Value->focus().ThrowOnFailure(); 445htmlDoc4.Value->focus().ThrowOnFailure(); 453htmlDoc3.Value->getElementById(bstrId, &iHTMLElement).ThrowOnFailure(); 461htmlDoc2.Value->elementFromPoint(point.X, point.Y, &iHTMLElement).ThrowOnFailure(); 470htmlDoc3.Value->getElementsByTagName(bstrTagName, &iHTMLElementCollection).ThrowOnFailure(); 481htmlDoc2.Value->open(url, name, VARIANT.Empty, VARIANT.Empty, dispatch).ThrowOnFailure(); 496htmlDoc2.Value->createElement(bstrElementTag, &iHTMLElement).ThrowOnFailure(); 506HRESULT hr = htmlDoc2.Value->get_Script(scriptDispatch); 515hr = scriptDispatch.Value->GetIDsOfNames(IID.NULL(), (PWSTR*)&n, 1, PInvokeCore.GetThreadLocale(), &dispid); 541hr = scriptDispatch.Value->Invoke(
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.HtmlDocumentShim.cs (2)
59htmlDoc3.Value->attachEvent(name, dispatch, &result).ThrowOnFailure(); 91htmlDoc3.Value->detachEvent(name, dispatch).ThrowOnFailure();
System\Windows\Forms\Controls\WebBrowser\HtmlElement.cs (58)
54_hashCode = HashCode.Combine((nint)scope.Value); 65htmlElement.Value->get_all(dispatch).ThrowOnFailure(); 67return !dispatch.IsNull && dispatch.Value->QueryInterface(IID.Get<IHTMLElementCollection>(), (void**)&htmlElementCollection).Succeeded 79htmlElement.Value->get_children(dispatch).ThrowOnFailure(); 81return !dispatch.IsNull && dispatch.Value->QueryInterface(IID.Get<IHTMLElementCollection>(), (void**)&htmlElementCollection).Succeeded 93htmlElement2.Value->get_canHaveChildren(&canHaveChildren).ThrowOnFailure(); 107htmlElement2.Value->get_clientLeft(&clientLeft).ThrowOnFailure(); 108htmlElement2.Value->get_clientTop(&clientTop).ThrowOnFailure(); 109htmlElement2.Value->get_clientWidth(&clientWidth).ThrowOnFailure(); 110htmlElement2.Value->get_clientHeight(&clientHeight).ThrowOnFailure(); 122nativeHtmlElement.Value->get_document(dispatch).ThrowOnFailure(); 139htmlElement3.Value->get_disabled(&disabled).ThrowOnFailure(); 145htmlElement3.Value->put_disabled(!value).ThrowOnFailure(); 174node.Value->get_firstChild(child).ThrowOnFailure(); 177hr = child.Value->QueryInterface(IID.Get<IHTMLElement>(), (void**)&iHtmlElement); 192nativeHtmlElement.Value->get_id(&id).ThrowOnFailure(); 199nativeHtmlElement.Value->put_id(newValue).ThrowOnFailure(); 209nativeHtmlElement.Value->get_innerHTML(&innerHtml).ThrowOnFailure(); 218nativeHtmlElement.Value->put_innerHTML(newValue).ThrowOnFailure(); 238nativeHtmlElement.Value->get_innerText(&innerText).ThrowOnFailure(); 247nativeHtmlElement.Value->put_innerText(newValue).ThrowOnFailure(); 290node.Value->get_nextSibling(sibling).ThrowOnFailure(); 293hr = sibling.Value->QueryInterface(IID.Get<IHTMLElement>(), (void**)&iHtmlElement); 312nativeHtmlElement.Value->get_offsetLeft(&offsetLeft).ThrowOnFailure(); 313nativeHtmlElement.Value->get_offsetTop(&offsetTop).ThrowOnFailure(); 314nativeHtmlElement.Value->get_offsetWidth(&offsetWidth).ThrowOnFailure(); 315nativeHtmlElement.Value->get_offsetHeight(&offsetHeight).ThrowOnFailure(); 327nativeHtmlElement.Value->get_offsetParent(&iHtmlElement).ThrowOnFailure(); 338nativeHtmlElement.Value->get_outerHTML(&outerHtml).ThrowOnFailure(); 347nativeHtmlElement.Value->put_outerHTML(newValue).ThrowOnFailure(); 367htmlElement.Value->get_outerText(&outerText).ThrowOnFailure(); 376htmlElement.Value->put_outerText(newValue).ThrowOnFailure(); 396htmlElement.Value->get_parentElement(&iHtmlElement).ThrowOnFailure(); 411htmlElement2.Value->get_scrollLeft(&scrollLeft).ThrowOnFailure(); 412htmlElement2.Value->get_scrollTop(&scrollTop).ThrowOnFailure(); 413htmlElement2.Value->get_scrollWidth(&scrollWidth).ThrowOnFailure(); 414htmlElement2.Value->get_scrollHeight(&scrollHeight).ThrowOnFailure(); 426htmlElement2.Value->get_scrollLeft(&scrollLeft).ThrowOnFailure(); 432htmlElement2.Value->put_scrollLeft(value).ThrowOnFailure(); 442htmlElement2.Value->get_scrollTop(&scrollTop).ThrowOnFailure(); 448htmlElement2.Value->put_scrollTop(value).ThrowOnFailure(); 460htmlElement.Value->get_style(style).ThrowOnFailure(); 462style.Value->get_cssText(&cssText).ThrowOnFailure(); 469htmlElement.Value->get_style(style).ThrowOnFailure(); 471style.Value->put_cssText(newValue).ThrowOnFailure(); 481htmlElement.Value->get_tagName(&tagName).ThrowOnFailure(); 492htmlElement2.Value->get_tabIndex(&tabIndex).ThrowOnFailure(); 498htmlElement2.Value->put_tabIndex(value).ThrowOnFailure(); 524htmlElement2.Value->focus().ThrowOnFailure(); 542htmlElement.Value->getAttribute(name, 0, &attributeValue).ThrowOnFailure(); 553htmlElement2.Value->getElementsByTagName(name, &iHTMLElementCollection).ThrowOnFailure(); 564htmlElement2.Value->insertAdjacentElement(where, insertedElement, &adjElement).ThrowOnFailure(); 585hr = scriptDispatch.Value->GetIDsOfNames(IID.NULL(), (PWSTR*)&n, 1, PInvokeCore.GetThreadLocale(), &dispid); 611hr = scriptDispatch.Value->Invoke( 639htmlElement2.Value->blur().ThrowOnFailure(); 648htmlElement3.Value->fireEvent(name, &eventObj, &canceled).ThrowOnFailure(); 655htmlElement.Value->scrollIntoView(variantAlignWithTop).ThrowOnFailure(); 665htmlElement.Value->setAttribute(name, variantValue, 0).ThrowOnFailure();
System\Windows\Forms\Controls\WebBrowser\HtmlElement.HtmlElementShim.cs (2)
84htmlElement2.Value->attachEvent(name, dispatch, &result).ThrowOnFailure(); 115htmlElement2.Value->detachEvent(name, dispatch).ThrowOnFailure();
System\Windows\Forms\Controls\WebBrowser\HtmlElementCollection.cs (5)
58htmlElementCollection.Value->item((VARIANT)index, (VARIANT)0, dispatch).ThrowOnFailure(); 60return !dispatch.IsNull && dispatch.Value->QueryInterface(IID.Get<IHTMLElement>(), (void**)&htmlElement).Succeeded 78nativeHtmlElementCollection.Value->item(variantElementId, (VARIANT)0, dispatch).ThrowOnFailure(); 80return !dispatch.IsNull && dispatch.Value->QueryInterface(IID.Get<IHTMLElement>(), (void**)&htmlElement).Succeeded 148nativeHtmlElementCollection.Value->get_length(&length).ThrowOnFailure();
System\Windows\Forms\Controls\WebBrowser\HtmlHistory.cs (5)
41return omHistory.Value->length; 53omHistory.Value->go(&oNumForward).ThrowOnFailure(); 65omHistory.Value->go(&oNumForward).ThrowOnFailure(); 87omHistory.Value->go(&loc).ThrowOnFailure(); 97omHistory.Value->go(&loc).ThrowOnFailure();
System\Windows\Forms\Controls\WebBrowser\HtmlWindow.cs (38)
34_hashCode = HashCode.Combine((nint)scope.Value); 75htmlWindow.Value->get_document(htmlDoc2).ThrowOnFailure(); 94htmlWindow.Value->get_frames(&iHTMLFramesCollection2).ThrowOnFailure(); 105htmlWindow.Value->get_history(&iOmHistory).ThrowOnFailure(); 116htmlWindow.Value->get_closed(&closed).ThrowOnFailure(); 130htmlWindow.Value->get_name(&name).ThrowOnFailure(); 137htmlWindow.Value->put_name(newValue).ThrowOnFailure(); 147htmlWindow.Value->get_opener(&variantDispatch).ThrowOnFailure(); 150return !dispatch.IsNull && dispatch.Value->QueryInterface(IID.Get<IHTMLWindow2>(), (void**)&htmlWindow2).Succeeded 162htmlWindow.Value->get_parent(&iHTMLWindow2).ThrowOnFailure(); 174htmlWindow3.Value->get_screenLeft(&x).ThrowOnFailure(); 175htmlWindow3.Value->get_screenTop(&y).ThrowOnFailure(); 189htmlWindow.Value->get_document(htmlDoc2).ThrowOnFailure(); 191htmlDoc2.Value->get_body(bodyElement).ThrowOnFailure(); 195bodyElement.Value->get_offsetWidth(&offsetWidth).ThrowOnFailure(); 196bodyElement.Value->get_offsetHeight(&offsetHeight).ThrowOnFailure(); 211htmlWindow.Value->get_status(&status).ThrowOnFailure(); 218htmlWindow.Value->put_status(newValue).ThrowOnFailure(); 228htmlWindow.Value->get_location(location).ThrowOnFailure(); 235location.Value->get_href(&href).ThrowOnFailure(); 247htmlWindow4.Value->get_frameElement(htmlFrameBase).ThrowOnFailure(); 249return !htmlFrameBase.IsNull && htmlFrameBase.Value->QueryInterface(IID.Get<IHTMLElement>(), (void**)&htmlElement).Succeeded 259htmlWindow.Value->alert(bstrMessage).ThrowOnFailure(); 268htmlWindow.Value->close().ThrowOnFailure(); 276htmlWindow.Value->confirm(bstrMessage, &confirmed).ThrowOnFailure(); 286htmlWindow.Value->focus().ThrowOnFailure(); 295htmlWindow.Value->moveTo(x, y).ThrowOnFailure(); 304htmlWindow.Value->moveTo(point.X, point.Y).ThrowOnFailure(); 311htmlWindow.Value->navigate(bstrUrl).ThrowOnFailure(); 322htmlWindow.Value->navigate(url).ThrowOnFailure(); 336htmlWindow.Value->open(url, bstrTarget, options, replaceEntry, &htmlWindow2).ThrowOnFailure(); 354htmlWindow.Value->open(url, target, options, VARIANT_BOOL.VARIANT_TRUE, &iHTMLWindow2).ThrowOnFailure(); 367htmlWindow.Value->prompt(bstrMessage, input, &result).ThrowOnFailure(); 374htmlWindow.Value->blur().ThrowOnFailure(); 383htmlWindow.Value->resizeTo(width, height).ThrowOnFailure(); 392htmlWindow.Value->resizeTo(size.Width, size.Height).ThrowOnFailure(); 401htmlWindow.Value->scrollTo(x, y).ThrowOnFailure(); 410htmlWindow.Value->scrollTo(point.X, point.Y).ThrowOnFailure();
System\Windows\Forms\Controls\WebBrowser\HtmlWindow.HtmlWindowShim.cs (2)
51htmlWindow3.Value->attachEvent(name, dispatch, &result).ThrowOnFailure(); 81htmlWindow3.Value->detachEvent(name, dispatch).ThrowOnFailure();
System\Windows\Forms\Controls\WebBrowser\HtmlWindowCollection.cs (5)
41htmlFrames2.Value->item(&oIndex, &variantDispatch).ThrowOnFailure(); 44return !dispatch.IsNull && dispatch.Value->QueryInterface(IID.Get<IHTMLWindow2>(), (void**)&htmlWindow2).Succeeded 60htmlFrameCollection2.Value->item(&oWindowId, &variantDispatch).ThrowOnFailure(); 64HRESULT hr = dispatch.Value->QueryInterface(IID.Get<IHTMLWindow2>(), (void**)&htmlWindow2); 88htmlFrames2.Value->get_length(&length).ThrowOnFailure();
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (31)
100webBrowser2.Value->get_RegisterAsDropTarget(&register).ThrowOnFailure(); 110webBrowser2.Value->put_RegisterAsDropTarget(value).ThrowOnFailure(); 129webBrowser2.Value->get_Silent(&silent).ThrowOnFailure(); 137webBrowser2.Value->put_Silent(value).ThrowOnFailure(); 221webBrowser2.Value->get_Document(dispatch).ThrowOnFailure(); 229iHTMLDocument2.Value->get_location(htmlLocation).ThrowOnFailure(); 233htmlLocation.Value->get_href(&href).ThrowOnFailure(); 350webBrowser2.Value->get_LocationName(&locationName).ThrowOnFailure(); 358htmlDocument2.Value->get_title(&title).AssertSuccess(); 383htmlDocument2.Value->get_mimeType(&mimeType).AssertSuccess(); 426webBrowser2.Value->get_Busy(&busy).ThrowOnFailure(); 443webBrowser2.Value->get_Offline(&offline).ThrowOnFailure(); 526webBrowser2.Value->get_ReadyState(&readyState).ThrowOnFailure(); 569webBrowser2.Value->get_LocationURL(&url).ThrowOnFailure(); 634webBrowser2.Value->GoBack().ThrowOnFailure(); 656webBrowser2.Value->GoForward().ThrowOnFailure(); 672webBrowser2.Value->GoHome().ThrowOnFailure(); 681webBrowser2.Value->GoSearch().ThrowOnFailure(); 816webBrowser2.Value->ExecWB(OLECMDID.OLECMDID_PRINT, OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER, (VARIANT*)default, default).ThrowOnFailure(); 834webBrowser2.Value->Refresh().ThrowOnFailure(); 839webBrowser2.Value->Refresh().ThrowOnFailure(); 861webBrowser2.Value->Refresh2(&level).ThrowOnFailure(); 866webBrowser2.Value->Refresh2(&level).ThrowOnFailure(); 905webBrowser2.Value->ExecWB(OLECMDID.OLECMDID_PAGESETUP, OLECMDEXECOPT.OLECMDEXECOPT_PROMPTUSER, (VARIANT*)default, default).ThrowOnFailure(); 921webBrowser2.Value->ExecWB(OLECMDID.OLECMDID_PRINT, OLECMDEXECOPT.OLECMDEXECOPT_PROMPTUSER, (VARIANT*)default, default).ThrowOnFailure(); 936webBrowser2.Value->ExecWB(OLECMDID.OLECMDID_PRINTPREVIEW, OLECMDEXECOPT.OLECMDEXECOPT_PROMPTUSER, (VARIANT*)default, default).ThrowOnFailure(); 952webBrowser2.Value->ExecWB(OLECMDID.OLECMDID_PROPERTIES, OLECMDEXECOPT.OLECMDEXECOPT_PROMPTUSER, (VARIANT*)default, default).ThrowOnFailure(); 968webBrowser2.Value->ExecWB(OLECMDID.OLECMDID_SAVEAS, OLECMDEXECOPT.OLECMDEXECOPT_DODEFAULT, (VARIANT*)default, default).ThrowOnFailure(); 983webBrowser2.Value->Stop().ThrowOnFailure(); 1200webBrowser2.Value->put_RegisterAsDropTarget(AllowWebBrowserDrop).ThrowOnFailure(); 1318webBrowser2.Value->Navigate2(&variantUrlString, &variantFlags, &variantTargetFrameName, &variantPostData, &variantHeaders).ThrowOnFailure();
System\Windows\Forms\Controls\WebBrowser\WebBrowserContainer.cs (1)
110oleObject.Value->GetClientSite(&clientSite);
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.Vista.cs (3)
38dialog.Value->Advise(events, out uint eventCookie); 41returnValue = dialog.Value->Show(hWndOwner) == HRESULT.S_OK; 46dialog.Value->Unadvise(eventCookie);
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (5)
348customize.Value->AddText(0, _descriptionText); 408itemArray.Value->GetCount(out uint itemCount); 413itemArray.Value->GetItemAt(itemIndex, item); 416item.Value->GetDisplayName(SIGDN.SIGDN_FILESYSPATH, out PWSTR ppszName); 430item.Value->GetDisplayName(SIGDN.SIGDN_FILESYSPATH, out PWSTR ppszName);
System\Windows\Forms\Dialogs\CommonDialogs\OpenFileDialog.cs (3)
148HRESULT hr = openDialog.Value->GetResults(items); 154items.Value->GetCount(out uint count); 159items.Value->GetItemAt(i, item);
System\Windows\Forms\Input\Cursor.cs (4)
409picture.Value->QueryInterface(IID.Get<IPersistStream>(), persist).ThrowOnFailure(); 412persist.Value->Load(pStream); 413picture.Value->get_Type(out PICTYPE type).ThrowOnFailure(); 417picture.Value->get_Handle(out OLE_HANDLE oleHandle);
System.Windows.Forms.Interop.Tests (6)
AccessibleObjectTests.cs (6)
743dispatch.Value->GetIDOfName("accChild", out int dispId).ThrowOnFailure(); 749dispatch.Value->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), typeInfo).ThrowOnFailure(); 750HRESULT hr = typeInfo.Value->GetIDOfName("accChild", out int memberId); 752hr = typeInfo.Value->GetIDOfName("get_accChild", out memberId); 756typeInfo.Value->GetTypeAttr(&typeattr).ThrowOnFailure(); 764typeInfo.Value->ReleaseTypeAttr(typeattr);
System.Windows.Forms.Primitives (16)
Microsoft\Office\IMsoComponentManager.NativeAdapter.cs (15)
25return manager.Value->QueryService(guidService, iid, ppvObj); 31return manager.Value->FDebugMessage(dwReserved, msg, wParam, lParam); 37return manager.Value->FRegisterComponent(piComponent, pcrinfo, dwComponentID); 43return manager.Value->FRevokeComponent(dwComponentID); 49return manager.Value->FUpdateComponentRegistration(dwComponentID, pcrinfo); 55return manager.Value->FOnComponentActivate(dwComponentID); 61return manager.Value->FSetTrackingComponent(dwComponentID, fTrack); 73manager.Value->OnComponentEnterState(dwComponentID, uStateID, uContext, cpicmExclude, rgpicmExclude, dwReserved); 84return manager.Value->FOnComponentExitState(dwComponentID, uStateID, uContext, cpicmExclude, rgpicmExclude); 90return manager.Value->FInState(uStateID, pvoid); 96return manager.Value->FContinueIdle(); 102return manager.Value->FPushMessageLoop(dwComponentID, uReason, pvLoopData); 108return manager.Value->FCreateSubComponentManager(punkOuter, punkServProv, riid, ppvObj); 114return manager.Value->FGetParentComponentManager(ppicm); 120return manager.Value->FGetActiveComponent(dwgac, ppic, pcrinfo, dwReserved);
Windows\Win32\System\Com\ComSafeArrayScope.cs (1)
56unknown.Value->QueryInterface(IID.Get<T>(), &result).ThrowOnFailure();
System.Windows.Forms.Primitives.Tests (61)
Interop\Ole32\IPictureTests.cs (7)
23picture.Value->get_Type(out PICTYPE type); 26picture.Value->get_Height(out int height); 28picture.Value->get_Width(out int width); 40picture.Value->get_Type(out PICTYPE type); 43picture.Value->get_Height(out int height); 45picture.Value->get_Width(out int width); 58IDispatch* dispatch = (IDispatch*)picture.Value;
Interop\Oleaut32\ITypeInfoTests.cs (36)
22((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), typeInfo); 25HRESULT hr = typeInfo.Value->AddressOfMember(6, INVOKEKIND.INVOKE_FUNC, &pvObj); 36((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), typeInfo); 39HRESULT hr = typeInfo.Value->CreateInstance(null, IID.Get<IPictureDisp>(), &pvObj); 50((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), typeInfo); 54typeInfo.Value->GetContainingTypeLib(typeLib, &index); 66((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), typeInfo); 72HRESULT hr = typeInfo.Value->GetDllEntry(6, INVOKEKIND.INVOKE_FUNC, &dllName, &name, &wOrdinal); 86((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), typeInfo); 92typeInfo.Value->GetDocumentation(4, &name, &docString, &dwHelpContext, &helpFile); 106((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), typeInfo); 111typeInfo.Value->GetFuncDesc(0, &pFuncDesc); 129typeInfo.Value->ReleaseFuncDesc(pFuncDesc); 140((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), typeInfo); 150typeInfo.Value->GetIDsOfNames(pRgszNames, (uint)rgszNames.Length, pRgDispId); 164((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), typeInfo); 167typeInfo.Value->GetImplTypeFlags(0, &implTypeFlags); 178((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), typeInfo); 181typeInfo.Value->GetMops(4, &mops); 192((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), typeInfo); 198typeInfo.Value->GetNames(4, rgszNames, 2u, &cNames); 214((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), typeInfo); 217typeInfo.Value->GetRefTypeOfImplType(0, &refType); 221typeInfo.Value->GetRefTypeInfo(refType, refTypeInfo); 231((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), typeInfo); 234typeInfo.Value->GetRefTypeOfImplType(0, &refType); 245((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), typeInfo); 250typeInfo.Value->GetTypeAttr(&pTypeAttr); 273typeInfo.Value->ReleaseTypeAttr(pTypeAttr); 284((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), typeInfo); 287typeInfo.Value->GetTypeComp(typeComp); 297((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), typeInfo); 302typeInfo.Value->GetVarDesc(3, &pVarDesc); 315typeInfo.Value->ReleaseVarDesc(pVarDesc); 326((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), typeInfo); 333HRESULT hr = typeInfo.Value->Invoke(
System\Windows\Forms\Automation\UiaTextRangeTests.cs (1)
437Assert.Equal(foundText, actual.Value->GetText(5000).ToStringAndFree());
Windows\Win32\AgileComPointerTests.cs (3)
40Assert.NotEqual(originalPtr, (nint)proxyStreamPtr.Value); 47Assert.NotEqual((nint)originalUnknownPtr.Value, proxyUnknownPtr); 70Assert.Equal(originalPtr, (nint)streamScope.Value);
Windows\Win32\GlobalInterfaceTableTests.cs (7)
17uint count = stream.Value->AddRef(); 20count = stream.Value->Release(); 23uint cookie = GlobalInterfaceTable.RegisterInterface(stream.Value); 24count = stream.Value->AddRef(); 28count = stream.Value->Release(); 32count = stream.Value->AddRef(); 34stream.Value->Release();
Windows\Win32\System\Com\ComSafeArrayScopeTests.cs (1)
33Assert.Equal((nint)expected.Value, (nint)scope[0]);
Windows\Win32\System\Com\IDispatchTests.cs (4)
29picture.Value->GetIDsOfNames(&riid, pRgszNames, (uint)rgszNames.Length, PInvokeCore.GetThreadLocale(), pRgDispId); 45picture.Value->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), typeInfo); 56picture.Value->GetTypeInfoCount(&ctInfo); 68HRESULT hr = ((IDispatch*)picture.Value)->TryGetProperty(
Windows\Win32\UI\Accessibility\AccessibleDispatchTests.cs (2)
18dispatch.Value->GetIDOfName("accChildCount", out int dispId).Should().Be(HRESULT.S_OK); 20using VARIANT result = dispatch.Value->GetProperty(dispId);
System.Windows.Forms.Tests (226)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (2)
2750Assert.Equal((nint)expected.Value, (nint)accessible.Value);
System\Windows\Forms\Application.ComponentManagerTests.cs (1)
339Assert.True(component.Value->FQueryTerminate(true));
System\Windows\Forms\AxHostTests.cs (12)
1614VARIANT variant = iPictureDisp.Value->GetProperty(PInvokeCore.DISPID_PICT_HANDLE); 1616variant = iPictureDisp.Value->GetProperty(PInvokeCore.DISPID_PICT_HPAL); 1618variant = iPictureDisp.Value->GetProperty(PInvokeCore.DISPID_PICT_TYPE); 1620variant = iPictureDisp.Value->GetProperty(PInvokeCore.DISPID_PICT_WIDTH); 1622variant = iPictureDisp.Value->GetProperty(PInvokeCore.DISPID_PICT_HEIGHT); 1639VARIANT variant = iPictureDisp.Value->GetProperty(PInvokeCore.DISPID_PICT_HANDLE); 1641Assert.True(iPictureDisp.Value->TryGetProperty(PInvokeCore.DISPID_PICT_HPAL, &variant).Failed); 1642variant = iPictureDisp.Value->GetProperty(PInvokeCore.DISPID_PICT_TYPE); 1644variant = iPictureDisp.Value->GetProperty(PInvokeCore.DISPID_PICT_WIDTH); 1646variant = iPictureDisp.Value->GetProperty(PInvokeCore.DISPID_PICT_HEIGHT); 3086ocx.Value->AddRef(); 3087(ocx.Value->Release() - 1).Should().Be(0);
System\Windows\Forms\ClipboardTests.cs (20)
470((nint)proxy.Value).Should().NotBe((nint)dataScope.Value); 474((nint)proxyUnknown.Value).Should().NotBe((nint)dataUnknown.Value); 479((nint)proxyUnknown.Value).Should().NotBe((nint)realDataPointerUnknown.Value); 480((nint)dataUnknown.Value).Should().Be((nint)realDataPointerUnknown.Value); 1333((nint)originalUnknown.Value).Should().NotBe((nint)iDataObject.Value); 1341((nint)iDataObject.Value).Should().NotBe((nint)receivedIDataObject.Value); 1346((nint)unknown.Value).Should().Be((nint)receivedIDataObject.Value); 1351((nint)wrapper.Value).Should().NotBe((nint)receivedIDataObject.Value); 1352((nint)wrapper.Value).Should().NotBe((nint)iDataObject.Value); 1355((nint)wrapperUnknown.Value).Should().Be((nint)originalUnknown.Value);
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (1)
164using ComScope<IRawElementProviderSimple> elementProvider = new(range.Value->GetEnclosingElement());
System\Windows\Forms\ComponentModel\Com2Interop\COM2FontConverterTests.cs (4)
80iFont.Value->AddRef(); 84new CustomGetNativeValueDescriptor((VARIANT)(IUnknown*)iFont.Value), 89Assert.Equal("Arial", iFont.Value->Name.ToStringAndFree()); 90Assert.Equal(20.0f, (float)iFont.Value->Size, precision: 0);
System\Windows\Forms\ComponentModel\Com2Interop\COM2PictureConverterTests.cs (12)
71Assert.Null(Instance.ConvertNativeToManaged((VARIANT)unknown.Value, null)); 82using Icon icon = (Icon)Instance.ConvertNativeToManaged((VARIANT)unknown.Value, null); 89Assert.Same(icon, (Icon)Instance.ConvertNativeToManaged((VARIANT)unknown.Value, null)); 102using Bitmap bitmap = (Bitmap)Instance.ConvertNativeToManaged((VARIANT)unknown.Value, property: null); 109Assert.Same(bitmap, (Bitmap)Instance.ConvertNativeToManaged((VARIANT)unknown.Value, property: null)); 124Assert.Null(Instance.ConvertNativeToManaged((VARIANT)unknown.Value, null)); 146picture.Value->get_Height(out int height).ThrowOnFailure(); 147picture.Value->get_Width(out int width).ThrowOnFailure(); 148picture.Value->get_Type(out PICTYPE type).ThrowOnFailure(); 167picture.Value->get_Height(out int height).ThrowOnFailure(); 168picture.Value->get_Width(out int width).ThrowOnFailure(); 169picture.Value->get_Type(out PICTYPE type).ThrowOnFailure();
System\Windows\Forms\Control.ActiveXFontMarshallerTests.cs (2)
24using BSTR name = iFont.Value->Name; 26Assert.Equal(11.25f, (float)iFont.Value->Size);
System\Windows\Forms\Control.ActiveXImplTests.cs (7)
23HRESULT hr = persistStream.Save(istream.Value, fClearDirty: BOOL.FALSE); 27istream.Value->Seek(0, SeekOrigin.Begin); 28hr = persistStream.Load(istream.Value); 47var istreamPointer = istream.Value; 65HRESULT hr = persistStream.Save(istream.Value, fClearDirty: BOOL.FALSE); 69istream.Value->Seek(0, SeekOrigin.Begin); 70hr = persistStream.Load(istream.Value);
System\Windows\Forms\DataObjectTests.cs (2)
2897DataObject data = new(comDataObject.Value); 2924HRESULT result = comDataObject.Value->GetData(formatetc, out Com.STGMEDIUM medium);
System\Windows\Forms\HtmlDocumentTests.cs (53)
99Assert.True(iHTMLDocument2.Value->put_alinkColor(variantValue).Succeeded); 123Assert.True(iHTMLDocument2.Value->get_alinkColor(&color).Succeeded); 130Assert.True(iHTMLDocument2.Value->get_alinkColor(&color2).Succeeded); 227iHtmlElement2.Value->blur(); 314Assert.True(iHTMLDocument2.Value->put_bgColor(variantValue).Succeeded); 346Assert.True(iHTMLDocument2.Value->get_bgColor(&color).Succeeded); 353Assert.True(iHTMLDocument2.Value->get_bgColor(&color2).Succeeded); 413Assert.True(iHtmlDomNode.Value->removeChild(domElement, node).Succeeded); 457Assert.True(iHTMLDocument2.Value->get_cookie(&cookie).Succeeded); 464Assert.True(iHTMLDocument2.Value->get_cookie(&cookie2).Succeeded); 515Assert.True(iHTMLDocument2.Value->put_defaultCharset(charSet).Succeeded); 620Assert.True(iHTMLDocument2.Value->put_charset(charSet).Succeeded); 646Assert.True(iHTMLDocument2.Value->get_charset(&charset).Succeeded); 653Assert.True(iHTMLDocument2.Value->get_charset(&charset2).Succeeded); 705iHTMLDocument4.Value->focus(); 709iHTMLDocument4.Value->focus(); 794Assert.True(iHTMLDocument2.Value->put_fgColor(variantValue).Succeeded); 819Assert.True(iHTMLDocument2.Value->get_fgColor(&color).Succeeded); 826Assert.True(iHTMLDocument2.Value->get_fgColor(&color2).Succeeded); 983Assert.True(iHTMLDocument2.Value->put_linkColor(variantValue).Succeeded); 1007Assert.True(iHTMLDocument2.Value->get_linkColor(&color).Succeeded); 1014Assert.True(iHTMLDocument2.Value->get_linkColor(&color2).Succeeded); 1120Assert.True(iHTMLDocument3.Value->put_dir(bstrRtl).Succeeded); 1145Assert.True(iHTMLDocument3.Value->get_dir(&dir).Succeeded); 1152Assert.True(iHTMLDocument3.Value->get_dir(&dir2).Succeeded); 1159Assert.True(iHTMLDocument3.Value->get_dir(&dir3).Succeeded); 1209Assert.True(iHTMLDocument2.Value->put_title(bstrTitle).Succeeded); 1233Assert.True(iHTMLDocument2.Value->get_title(&title).Succeeded); 1240Assert.True(iHTMLDocument2.Value->get_title(&title2).Succeeded); 1346Assert.True(iHTMLDocument2.Value->put_vlinkColor(variantValue).Succeeded); 1370Assert.True(iHTMLDocument2.Value->get_vlinkColor(&color).Succeeded); 1377Assert.True(iHTMLDocument2.Value->get_vlinkColor(&color2).Succeeded); 1493Assert.True(iHTMLDocument4.Value->fireEvent(name, &eventObj, &cancelled).Succeeded); 2022Assert.True(iHTMLDocument4.Value->fireEvent(onClick, &eventObj, &cancelled).Succeeded); 2027Assert.True(iHTMLDocument4.Value->fireEvent(onClick, &eventObj, &cancelled).Succeeded); 2060Assert.True(iHTMLDocument4.Value->fireEvent(onContextMenu, &eventObj, &cancelled).Succeeded); 2065Assert.True(iHTMLDocument4.Value->fireEvent(onContextMenu, &eventObj, &cancelled).Succeeded); 2098Assert.True(iHTMLDocument4.Value->fireEvent(onFocusing, &eventObj, &cancelled).Succeeded); 2103Assert.True(iHTMLDocument4.Value->fireEvent(onFocusing, &eventObj, &cancelled).Succeeded); 2136Assert.True(iHTMLDocument4.Value->fireEvent(onFocusOut, &eventObj, &cancelled).Succeeded); 2141Assert.True(iHTMLDocument4.Value->fireEvent(onFocusOut, &eventObj, &cancelled).Succeeded); 2174Assert.True(iHTMLDocument4.Value->fireEvent(onMouseDown, &eventObj, &cancelled).Succeeded); 2179Assert.True(iHTMLDocument4.Value->fireEvent(onMouseDown, &eventObj, &cancelled).Succeeded); 2212Assert.True(iHTMLDocument4.Value->fireEvent(onMouseOut, &eventObj, &cancelled).Succeeded); 2217Assert.True(iHTMLDocument4.Value->fireEvent(onMouseOut, &eventObj, &cancelled).Succeeded); 2250Assert.True(iHTMLDocument4.Value->fireEvent(onMouseMove, &eventObj, &cancelled).Succeeded); 2255Assert.True(iHTMLDocument4.Value->fireEvent(onMouseMove, &eventObj, &cancelled).Succeeded); 2288Assert.True(iHTMLDocument4.Value->fireEvent(onMouseOver, &eventObj, &cancelled).Succeeded); 2293Assert.True(iHTMLDocument4.Value->fireEvent(onMouseOver, &eventObj, &cancelled).Succeeded); 2326Assert.True(iHTMLDocument4.Value->fireEvent(onMouseUp, &eventObj, &cancelled).Succeeded); 2331Assert.True(iHTMLDocument4.Value->fireEvent(onMouseUp, &eventObj, &cancelled).Succeeded); 2364Assert.True(iHTMLDocument4.Value->fireEvent(onStop, &eventObj, &cancelled).Succeeded); 2369Assert.True(iHTMLDocument4.Value->fireEvent(onStop, &eventObj, &cancelled).Succeeded);
System\Windows\Forms\HtmlElementTests.cs (78)
227Assert.True(iHTMLElement3.Value->put_disabled(disabled).Succeeded); 253Assert.True(iHTMLElement3.Value->get_disabled(&disabled).Succeeded); 260Assert.True(iHTMLElement3.Value->get_disabled(&disabled2).Succeeded); 267Assert.True(iHTMLElement3.Value->get_disabled(&disabled3).Succeeded); 355Assert.True(iHTMLElement.Value->put_id(bstrId).Succeeded); 382Assert.True(iHTMLElement.Value->get_id(&id).Succeeded); 389Assert.True(iHTMLElement.Value->get_id(&id2).Succeeded); 445Assert.True(iHTMLElement.Value->put_innerHTML(innerHtml).Succeeded); 473Assert.True(iHTMLElement.Value->get_innerHTML(&innerHtml).Succeeded); 480Assert.True(iHTMLElement.Value->get_innerHTML(&innerHtml2).Succeeded); 566Assert.True(iHTMLElement.Value->put_innerHTML(innerHtml).Succeeded); 594Assert.True(iHTMLElement.Value->get_innerText(&innerText).Succeeded); 601Assert.True(iHTMLElement.Value->get_innerText(&innerText2).Succeeded); 685iHTMLElement.Value->setAttribute(name, variantId, 0); 713Assert.True(iHTMLElement.Value->getAttribute(name, 0, out VARIANT attribute).Succeeded); 720Assert.True(iHTMLElement.Value->getAttribute(name, 0, out attribute).Succeeded); 867Assert.True(iHTMLElement.Value->put_innerHTML(innerHtml).Succeeded); 900Assert.True(iHTMLElement.Value->get_outerHTML(&outerHTML).Succeeded); 907Assert.True(iHTMLElement.Value->get_outerHTML(&outerHTML2).Succeeded); 978Assert.True(iHTMLElement.Value->put_innerHTML(innerHtml).Succeeded); 1006Assert.True(iHTMLElement.Value->get_outerText(&outerText).Succeeded); 1013Assert.True(iHTMLElement.Value->get_outerText(&outerText2).Succeeded); 1106Assert.True(iHTMLElement2.Value->put_scrollLeft(value).Succeeded); 1133Assert.True(iHTMLElement2.Value->get_scrollLeft(&scrollLeft).Succeeded); 1139Assert.True(iHTMLElement2.Value->get_scrollLeft(&scrollLeft).Succeeded); 1196Assert.True(iHTMLElement2.Value->put_scrollTop(value).Succeeded); 1223Assert.True(iHTMLElement2.Value->get_scrollTop(&scrollTop).Succeeded); 1229Assert.True(iHTMLElement2.Value->get_scrollTop(&scrollTop).Succeeded); 1289Assert.True(iHTMLElement.Value->get_style(htmlStyle).Succeeded); 1291Assert.True(htmlStyle.Value->put_cssText(bstrStyle).Succeeded); 1327Assert.True(iHTMLElement.Value->get_style(htmlStyle).Succeeded); 1329Assert.True(htmlStyle.Value->get_cssText(&cssText).Succeeded); 1368Assert.True(iHTMLElement2.Value->put_tabIndex(value).Succeeded); 1395Assert.True(iHTMLElement2.Value->get_tabIndex(&tabIndex).Succeeded); 1401Assert.True(iHTMLElement2.Value->get_tabIndex(&tabIndex).Succeeded); 1603Assert.True(iHTMLElement3.Value->fireEvent(name, &eventObj, &cancelled).Succeeded); 1646Assert.True(iHTMLElement3.Value->fireEvent(name, &eventObj, &cancelled).Succeeded); 1686Assert.True(iHTMLElement3.Value->fireEvent(name, &eventObj, &cancelled).Succeeded); 1873iHTMLElement.Value->setAttribute(id, attribute, 1); 1876iHTMLElement.Value->setAttribute(customAttribute, value, 1); 2570Assert.True(iHTMLElement3.Value->fireEvent(onClick, &eventObj, &cancelled).Succeeded); 2576Assert.True(iHTMLElement3.Value->fireEvent(onClick, &eventObj, &cancelled).Succeeded); 2611Assert.True(iHTMLElement3.Value->fireEvent(ondblclick, &eventObj, &cancelled).Succeeded); 2617Assert.True(iHTMLElement3.Value->fireEvent(ondblclick, &eventObj, &cancelled).Succeeded); 2652Assert.True(iHTMLElement3.Value->fireEvent(onDrag, &eventObj, &cancelled).Succeeded); 2658Assert.True(iHTMLElement3.Value->fireEvent(onDrag, &eventObj, &cancelled).Succeeded); 2693Assert.True(iHTMLElement3.Value->fireEvent(onDragEnd, &eventObj, &cancelled).Succeeded); 2699Assert.True(iHTMLElement3.Value->fireEvent(onDragEnd, &eventObj, &cancelled).Succeeded); 2734Assert.True(iHTMLElement3.Value->fireEvent(onDragLeave, &eventObj, &cancelled).Succeeded); 2740Assert.True(iHTMLElement3.Value->fireEvent(onDragLeave, &eventObj, &cancelled).Succeeded); 2775Assert.True(iHTMLElement3.Value->fireEvent(onDragOver, &eventObj, &cancelled).Succeeded); 2781Assert.True(iHTMLElement3.Value->fireEvent(onDragOver, &eventObj, &cancelled).Succeeded); 2816Assert.True(iHTMLElement3.Value->fireEvent(onFocus, &eventObj, &cancelled).Succeeded); 2822Assert.True(iHTMLElement3.Value->fireEvent(onFocus, &eventObj, &cancelled).Succeeded); 2857Assert.True(iHTMLElement3.Value->fireEvent(onFocusin, &eventObj, &cancelled).Succeeded); 2863Assert.True(iHTMLElement3.Value->fireEvent(onFocusin, &eventObj, &cancelled).Succeeded); 2898Assert.True(iHTMLElement3.Value->fireEvent(onFocusOut, &eventObj, &cancelled).Succeeded); 2904Assert.True(iHTMLElement3.Value->fireEvent(onFocusOut, &eventObj, &cancelled).Succeeded); 2939Assert.True(iHTMLElement3.Value->fireEvent(onBlur, &eventObj, &cancelled).Succeeded); 2945Assert.True(iHTMLElement3.Value->fireEvent(onBlur, &eventObj, &cancelled).Succeeded); 2980Assert.True(iHTMLElement3.Value->fireEvent(onKeyDown, &eventObj, &cancelled).Succeeded); 2986Assert.True(iHTMLElement3.Value->fireEvent(onKeyDown, &eventObj, &cancelled).Succeeded); 3021Assert.True(iHTMLElement3.Value->fireEvent(onKeyPress, &eventObj, &cancelled).Succeeded); 3027Assert.True(iHTMLElement3.Value->fireEvent(onKeyPress, &eventObj, &cancelled).Succeeded); 3062Assert.True(iHTMLElement3.Value->fireEvent(onKeyUp, &eventObj, &cancelled).Succeeded); 3068Assert.True(iHTMLElement3.Value->fireEvent(onKeyUp, &eventObj, &cancelled).Succeeded); 3103Assert.True(iHTMLElement3.Value->fireEvent(onMouseDown, &eventObj, &cancelled).Succeeded); 3109Assert.True(iHTMLElement3.Value->fireEvent(onMouseDown, &eventObj, &cancelled).Succeeded); 3144Assert.True(iHTMLElement3.Value->fireEvent(onMouseEnter, &eventObj, &cancelled).Succeeded); 3150Assert.True(iHTMLElement3.Value->fireEvent(onMouseEnter, &eventObj, &cancelled).Succeeded); 3185Assert.True(iHTMLElement3.Value->fireEvent(onMouseLeave, &eventObj, &cancelled).Succeeded); 3191Assert.True(iHTMLElement3.Value->fireEvent(onMouseLeave, &eventObj, &cancelled).Succeeded); 3226Assert.True(iHTMLElement3.Value->fireEvent(onMouseMove, &eventObj, &cancelled).Succeeded); 3232Assert.True(iHTMLElement3.Value->fireEvent(onMouseMove, &eventObj, &cancelled).Succeeded); 3267Assert.True(iHTMLElement3.Value->fireEvent(onMouseOver, &eventObj, &cancelled).Succeeded); 3273Assert.True(iHTMLElement3.Value->fireEvent(onMouseOver, &eventObj, &cancelled).Succeeded); 3308Assert.True(iHTMLElement3.Value->fireEvent(onMouseUp, &eventObj, &cancelled).Succeeded); 3314Assert.True(iHTMLElement3.Value->fireEvent(onMouseUp, &eventObj, &cancelled).Succeeded);
System\Windows\Forms\HtmlToClrEventProxyTest.cs (13)
22dispatchEx.Value->GetNextDispID(fdexEnumAll, PInvokeCore.DISPID_UNKNOWN, out int id); 25dispatchEx.Value->GetMemberName(id, &onHtmlEvent); 28dispatchEx.Value->GetNextDispID(fdexEnumAll, id, out id); 31dispatchEx.Value->GetMemberName(id, &eventName); 34dispatchEx.Value->GetNextDispID(fdexEnumAll, id, out id); 37dispatchEx.Value->GetMemberName(id, &getEventName); 60dispatchEx.Value->GetMemberProperties(0, uint.MaxValue, out FDEX_PROP_FLAGS flags); 62dispatchEx.Value->GetMemberProperties(65536, uint.MaxValue, out flags); 64dispatchEx.Value->GetMemberProperties(65537, uint.MaxValue, out flags); 79HRESULT hr = dispatch.Value->Invoke(0, IID.NULL(), locale, DISPATCH_FLAGS.DISPATCH_METHOD, &dispParams, &result, default, default); 83hr = dispatch.Value->Invoke(65536, IID.NULL(), locale, DISPATCH_FLAGS.DISPATCH_PROPERTYGET, &dispParams, &result, default, default); 87hr = dispatch.Value->Invoke(65536, IID.NULL(), locale, DISPATCH_FLAGS.DISPATCH_PROPERTYPUT, &dispParams, &result, default, default); 90hr = dispatch.Value->Invoke(65537, IID.NULL(), locale, DISPATCH_FLAGS.DISPATCH_METHOD, &dispParams, &result, default, default);
System\Windows\Forms\NativeToWinFormsAdapterTests.cs (11)
24DataObject dataObject = new(comDataObject.Value); 49DataObject dataObject = new(comDataObject.Value); 68DataObject dataObject = new(comDataObject.Value); 83DataObject dataObject = new(comDataObject.Value); 155DataObject dataObject = new(comDataObject.Value); 169DataObject dataObject = new(comDataObject.Value); 186DataObject dataObject = new(comDataObject.Value); 202DataObject dataObject = new(comDataObject.Value); 217DataObject dataObject = new(comDataObject.Value); 425DataObject dataObject = new(comDataObject.Value); 444DataObject dataObject = new(comDataObject.Value);
System\Windows\Forms\WebBrowserTests.cs (8)
303Assert.True(webBrowser.Value->get_RegisterAsDropTarget(&register).Succeeded); 311Assert.True(webBrowser.Value->get_RegisterAsDropTarget(&register).Succeeded); 319Assert.True(webBrowser.Value->get_RegisterAsDropTarget(&register).Succeeded); 1737Assert.True(webBrowser.Value->get_Silent(&silent).Succeeded); 1745Assert.True(webBrowser.Value->get_Silent(&silent).Succeeded); 3619Assert.True(webBrowser.Value->put_RegisterAsDropTarget(!allowWebBrowserDrop).Succeeded); 3627Assert.True(webBrowser.Value->get_RegisterAsDropTarget(&register).Succeeded); 3636Assert.True(webBrowser.Value->get_RegisterAsDropTarget(&register).Succeeded);
System.Windows.Forms.UI.IntegrationTests (6)
DragDropTests.cs (4)
176Assert.Equal(HRESULT.S_OK, uiAutomation.Value->GetFocusedElement(uiAutomationElement)); 182uiAutomationElement.Value->get_CurrentBoundingRectangle(out RECT rect); 186Assert.Equal(HRESULT.S_OK, uiAutomationElement.Value->GetClickablePoint(out Point clickable, out BOOL gotClickable)); 210Assert.Equal(HRESULT.S_OK, uiAutomationElement.Value->SetFocus());
RichTextBoxTests.cs (2)
222textDocument.Value->Range(start, start + length, range).ThrowOnFailure(); 225range.Value->GetText(&text).ThrowOnFailure();