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