143 references to IDispatch
System.Private.Windows.Core (13)
Windows\Win32\Foundation\HRESULT.cs (1)
89/// aren't actually <see cref="IUnknown"/> or <see cref="IDispatch"/> object pointers.
Windows\Win32\System\Com\IDispatch.cs (1)
28fixed (IDispatch* dispatch = &this)
Windows\Win32\System\Com\IDispatch.Interface.cs (11)
11internal unsafe partial struct IDispatch : IVTable<IDispatch, IDispatch.Vtbl> 13static void IVTable<IDispatch, Vtbl>.PopulateVTable(Vtbl* vtable) 22private static HRESULT GetTypeInfoCount(IDispatch* @this, uint* pctinfo) 23=> UnwrapAndInvoke<IDispatch, Interface>(@this, o => o.GetTypeInfoCount(pctinfo)); 26private static HRESULT GetTypeInfo(IDispatch* @this, uint iTInfo, uint lcid, ITypeInfo** ppTInfo) 27=> UnwrapAndInvoke<IDispatch, Interface>(@this, o => o.GetTypeInfo(iTInfo, lcid, ppTInfo)); 30private static HRESULT GetIDsOfNames(IDispatch* @this, Guid* riid, PWSTR* rgszNames, uint cNames, uint lcid, int* rgDispId) 31=> UnwrapAndInvoke<IDispatch, Interface>(@this, o => o.GetIDsOfNames(riid, rgszNames, cNames, lcid, rgDispId)); 35IDispatch* @this, 44=> UnwrapAndInvoke<IDispatch, Interface>(
System.Windows.Forms (77)
System\Windows\Forms\Accessibility\AccessibleObject.cs (22)
52IDispatch.Interface, 55IDispatch, 295private IDispatch* GetSystemAccessibleParent() 300IDispatch* dispatch; 1615IDispatch* dispatch = ComHelpers.TryGetComPointer<IDispatch>(childId); 1834ComScope<IDispatch> child = new(null); 1839HRESULT UIA.IAccessible.Interface.get_accChild(VARIANT varChild, IDispatch** ppdispChild) 2241ComScope<IDispatch> dispatch = new(null); 2247HRESULT UIA.IAccessible.Interface.get_accParent(IDispatch** ppdispParent) 2679private static IDispatch* GetIDispatch(AccessibleObject? obj) 2685return accessible.GetInterface<IDispatch>().Value; 2688return ComHelpers.TryGetComPointer<IDispatch>(obj); 2860private AccessibleObject? TryGetAccessibleObject(IDispatch* dispatch) 3309HRESULT IDispatch.Interface.GetTypeInfoCount(uint* pctinfo) 3310=> ((IDispatch.Interface)_dispatchAdapter).GetTypeInfoCount(pctinfo); 3312HRESULT IDispatch.Interface.GetTypeInfo(uint iTInfo, uint lcid, ITypeInfo** ppTInfo) 3313=> ((IDispatch.Interface)_dispatchAdapter).GetTypeInfo(iTInfo, lcid, ppTInfo); 3315HRESULT IDispatch.Interface.GetIDsOfNames(Guid* riid, PWSTR* rgszNames, uint cNames, uint lcid, int* rgDispId) 3316=> ((IDispatch.Interface)_dispatchAdapter).GetIDsOfNames(riid, rgszNames, cNames, lcid, rgDispId); 3318HRESULT IDispatch.Interface.Invoke( 3327=> ((IDispatch.Interface)_dispatchAdapter).Invoke(dispIdMember, riid, lcid, dwFlags, pDispParams, pVarResult, pExcepInfo, pArgErr);
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (1)
20IManagedWrapper<IOleContainer, IOleInPlaceFrame, IOleInPlaceUIWindow, IOleWindow, IDispatch, IDispatchEx>
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (2)
15/// Provides an <see cref="IDispatch"/> and <see cref="IDispatchEx"/> view of <see cref="Control"/> 24IManagedWrapper<IDispatch, IDispatchEx, IExtender, IVBGetControl, IGetVBAObject, IGetOleObject>
System\Windows\Forms\ActiveX\AxHost.cs (2)
3762using ComScope<IDispatch> dispatch = new((IDispatch*)Marshal.GetIDispatchForObject(oleFont));
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (3)
29IManagedWrapper<IDispatch, IDispatchEx, IOleControlSite, IOleClientSite, IOleWindow, IOleInPlaceSite, ISimpleFrameSite, IVBGetControl, IGetVBAObject, IPropertyNotifySink> 146HRESULT IOleControlSite.Interface.GetExtendedControl(IDispatch** ppDisp) 159*ppDisp = ComHelpers.GetComPointer<IDispatch>(proxy);
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
592using var dispatch = _clientSite.TryGetInterface<IDispatch>(out HRESULT hr);
System\Windows\Forms\ComponentModel\COM2Interop\Com2AboutBoxPropertyDescriptor.AboutBoxUITypeEditor.cs (1)
19using var dispatch = ComHelpers.TryGetComScope<IDispatch>(context.Instance, out HRESULT hr);
System\Windows\Forms\ComponentModel\COM2Interop\COM2IDispatchConverter.cs (1)
46using var dispatch = ComHelpers.TryGetComScope<IDispatch>(value, out HRESULT hr);
System\Windows\Forms\ComponentModel\COM2Interop\COM2IVsPerPropertyBrowsingHandler.cs (2)
97if (typeof(IDispatch.Interface).IsAssignableFrom(sender.PropertyType) && sender.CanShow) 171if (sender.CanShow && typeof(IDispatch.Interface).IsAssignableFrom(sender.PropertyType))
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (7)
140if (CanShow && (propertyType == typeof(object) || (_valueConverter is null && propertyType == typeof(IDispatch.Interface)))) 212using var dispatch = ComHelpers.TryGetComScope<IDispatch>(TargetObject, out HRESULT hr); 281public sealed override Type ComponentType => typeof(IDispatch.Interface); 511localConverter ??= typeof(IDispatch).IsAssignableFrom(PropertyType) 613using var dispatch = ComHelpers.TryGetComScope<IDispatch>(component, out HRESULT hr); 832using var dispatch = ComHelpers.TryGetComScope<IDispatch>(owner, out HRESULT hr); 876if (iSupportErrorInfo.Value->InterfaceSupportsErrorInfo(IID.Get<IDispatch>()).Succeeded)
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (6)
80using var dispatch = ComHelpers.TryGetComScope<IDispatch>(comObject, out HRESULT hr); 142public static int GetNameDispId(IDispatch* dispatch) 192if (!ComHelpers.SupportsInterface<IDispatch>(comObject)) 255using var dispatch = ComHelpers.GetComScope<IDispatch>(comObject); 399IDispatch* dispatch, 891VT_DISPATCH => typeof(IDispatch),
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.ComTypeDescriptor.cs (1)
33using var dispatch = ComHelpers.TryGetComScope<IDispatch>(_instance, out HRESULT hr);
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (5)
59using var dispatch = ComHelpers.TryGetComScope<IDispatch>(component, out HRESULT hr); 106internal static string GetName(IDispatch* dispatch) 122internal static HRESULT GetPropertyValue(IDispatch* dispatch, string propertyName, out object? value) 143internal static HRESULT GetPropertyValue(IDispatch* dispatch, int dispid, out object? value) 172using var dispatch = ComHelpers.TryGetComScope<IDispatch>(@object, out HRESULT hr);
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (2)
480using ComScope<IDispatch> dispatch = new(null); 505using ComScope<IDispatch> scriptDispatch = new(null);
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.HtmlDocumentShim.cs (2)
57using var dispatch = ComHelpers.GetComScope<IDispatch>(proxy); 90using var dispatch = ComHelpers.GetComScope<IDispatch>(proxy);
System\Windows\Forms\Controls\WebBrowser\HtmlElement.cs (4)
64using ComScope<IDispatch> dispatch = new(null); 78using ComScope<IDispatch> dispatch = new(null); 121using ComScope<IDispatch> dispatch = new(null); 575using var scriptDispatch = htmlElement.TryQuery<IDispatch>(out HRESULT hr);
System\Windows\Forms\Controls\WebBrowser\HtmlElement.HtmlElementShim.cs (2)
82using var dispatch = ComHelpers.GetComScope<IDispatch>(proxy); 114using var dispatch = ComHelpers.GetComScope<IDispatch>(proxy);
System\Windows\Forms\Controls\WebBrowser\HtmlElementCollection.cs (2)
57using ComScope<IDispatch> dispatch = new(null); 77using ComScope<IDispatch> dispatch = new(null);
System\Windows\Forms\Controls\WebBrowser\HtmlToClrEventProxy.cs (4)
17internal class HtmlToClrEventProxy : UnknownDispatch, IManagedWrapper<IDispatch, IDispatchEx> 125properties = IDispatch.GetMethodFlags(); 128properties = IDispatch.GetPropertyFlags(canRead: true, canWrite: false); 131properties = IDispatch.GetMethodFlags();
System\Windows\Forms\Controls\WebBrowser\HtmlWindow.cs (1)
148using ComScope<IDispatch> dispatch = new(variantDispatch.data.pdispVal);
System\Windows\Forms\Controls\WebBrowser\HtmlWindow.HtmlWindowShim.cs (2)
49using var dispatch = ComHelpers.GetComScope<IDispatch>(proxy); 80using var dispatch = ComHelpers.GetComScope<IDispatch>(proxy);
System\Windows\Forms\Controls\WebBrowser\HtmlWindowCollection.cs (2)
42using ComScope<IDispatch> dispatch = new(variantDispatch.data.pdispVal); 61using ComScope<IDispatch> dispatch = new(variantDispatch.data.pdispVal);
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
220using ComScope<IDispatch> dispatch = new(null);
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (1)
71HRESULT IOleControlSite.Interface.GetExtendedControl(IDispatch** ppDisp)
System.Windows.Forms.Interop.Tests (1)
AccessibleObjectTests.cs (1)
742using var dispatch = ComHelpers.TryGetComScope<IDispatch>(accessible);
System.Windows.Forms.Primitives (16)
Microsoft\VisualStudio\Shell\IProvidePropertyBuilder.cs (4)
73IDispatch* pdispApp, 79return ((delegate* unmanaged[Stdcall]<IProvidePropertyBuilder*, int, BSTR*, IDispatch*, HWND, VARIANT*, VARIANT_BOOL*, HRESULT>)_lpVtbl[4])( 92/// browser and are invoked through <see cref="ExecuteBuilder(int, BSTR*, IDispatch*, HWND, VARIANT*, VARIANT_BOOL*)"/> 140IDispatch* pdispApp,
System\Drawing\ImageExtensions.cs (2)
63IDispatch* dispatch = (IDispatch*)picture;
Windows\Win32\System\Com\StandardDispatch.cs (7)
10/// Base class for providing <see cref="IDispatch"/> services through a standard dispatch implementation 16/// through to <see cref="ITypeInfo"/> for basic <see cref="IDispatch"/> support. 19internal abstract unsafe class StandardDispatch<T> : IDispatch.Interface, IDispatchEx.Interface, IDisposable 60HRESULT IDispatch.Interface.GetTypeInfoCount(uint* pctinfo) 71HRESULT IDispatch.Interface.GetTypeInfo(uint iTInfo, uint lcid, ITypeInfo** ppTInfo) 89HRESULT IDispatch.Interface.GetIDsOfNames(Guid* riid, PWSTR* rgszNames, uint cNames, uint lcid, int* rgDispId) 100HRESULT IDispatch.Interface.Invoke(
Windows\Win32\System\Com\UnknownDispatch.cs (1)
7/// Base <see cref="IDispatch"/> class for <see cref="IUnknown"/>.
Windows\Win32\System\Ole\ClassPropertyDispatchAdapter.cs (1)
324FDEX_PROP_FLAGS flags = IDispatch.GetPropertyFlags(info.CanRead, info.CanWrite);
Windows\Win32\UI\Accessibility\AccessibleDispatch.cs (1)
9/// Base <see cref="IDispatch"/> class for <see cref="IAccessible"/>.
System.Windows.Forms.Primitives.Tests (23)
Interop\Ole32\IPictureTests.cs (2)
58IDispatch* dispatch = (IDispatch*)picture.Value;
Interop\Oleaut32\ITypeInfoTests.cs (16)
22((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), typeInfo); 36((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), typeInfo); 50((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), typeInfo); 66((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), typeInfo); 86((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), typeInfo); 106((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), typeInfo); 140((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), typeInfo); 164((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), typeInfo); 178((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), typeInfo); 192((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), typeInfo); 214((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), typeInfo); 231((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), typeInfo); 245((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), typeInfo); 284((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), typeInfo); 297((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), typeInfo); 326((IDispatch*)iPictureDisp.Value)->GetTypeInfo(0, PInvokeCore.GetThreadLocale(), typeInfo);
Windows\Win32\System\Com\IDispatchTests.cs (1)
68HRESULT hr = ((IDispatch*)picture.Value)->TryGetProperty(
Windows\Win32\UI\Accessibility\AccessibleDispatchTests.cs (4)
17using var dispatch = ComHelpers.GetComScope<IDispatch>(accessibleObject); 25private unsafe class AccessibleTestObject : AccessibleDispatch, IAccessible.Interface, IManagedWrapper<IAccessible, IDispatch, IDispatchEx> 27HRESULT IAccessible.Interface.get_accParent(IDispatch** ppdispParent) => HRESULT.E_NOTIMPL; 34HRESULT IAccessible.Interface.get_accChild(VARIANT varChild, IDispatch** ppdispChild) => HRESULT.E_NOTIMPL;
System.Windows.Forms.Tests (13)
System\Windows\Forms\AxHostTests.cs (2)
1612using var iPictureDisp = ComHelpers.GetComScope<IDispatch>(disp); 1637using var iPictureDisp = ComHelpers.GetComScope<IDispatch>(disp);
System\Windows\Forms\ComponentModel\Com2Interop\COM2FontConverterTests.cs (6)
136private class DispatchStub : IDispatch.Interface, IManagedWrapper<IDispatch> 141HRESULT IDispatch.Interface.GetTypeInfoCount(uint* pctinfo) => throw new NotImplementedException(); 143HRESULT IDispatch.Interface.GetTypeInfo(uint iTInfo, uint lcid, ITypeInfo** ppTInfo) => throw new NotImplementedException(); 145HRESULT IDispatch.Interface.GetIDsOfNames(Guid* riid, PWSTR* rgszNames, uint cNames, uint lcid, int* rgDispId) => throw new NotImplementedException(); 147HRESULT IDispatch.Interface.Invoke(
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (4)
241IManagedWrapper<IAccessible, IDispatch, IProvideMultipleClassInfo> 277return ((IDispatch.Interface)this).GetTypeInfo(iti, 0, pptiCoClass); 305HRESULT IAccessible.Interface.get_accParent(IDispatch** ppdispParent) => HRESULT.E_NOTIMPL; 306HRESULT IAccessible.Interface.get_accChild(VARIANT varChild, IDispatch** ppdispChild) => HRESULT.E_NOTIMPL;
System\Windows\Forms\HtmlToClrEventProxyTest.cs (1)
74using var dispatch = ComHelpers.GetComScope<IDispatch>(proxy);