83 references to ComWrappersSupport
PresentationFramework (83)
MS\Internal\WindowsRuntime\Generated\Windows.Data.Text.cs (39)
350
return new global::MS.Internal.WindowsRuntime.ABI.Windows.Data.Text.IWordsSegmenter(
ComWrappersSupport
.GetObjectReferenceForInterface(ptr));
358
ComWrappersSupport
.RegisterObjectForInterface(this, ThisPtr);
459
var nativeVftbl = (IntPtr*)
ComWrappersSupport
.AllocateVtableMemory(typeof(Vftbl), Marshal.SizeOf<global::WinRT.IInspectable.Vftbl>() + sizeof(IntPtr) * 3);
472
__value = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IAlternateWordForm>(thisPtr).AlternateText;
491
__value = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IAlternateWordForm>(thisPtr).NormalizationFormat;
510
__value = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IAlternateWordForm>(thisPtr).SourceTextSegment;
631
var nativeVftbl = (IntPtr*)
ComWrappersSupport
.AllocateVtableMemory(typeof(Vftbl), Marshal.SizeOf<global::WinRT.IInspectable.Vftbl>() + sizeof(IntPtr) * 17);
644
__codepoint = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IUnicodeCharactersStatics>(thisPtr).GetCodepointFromSurrogatePair(highSurrogate, lowSurrogate);
665
global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IUnicodeCharactersStatics>(thisPtr).GetSurrogatePairFromCodepoint(codepoint, out __highSurrogate, out __lowSurrogate);
685
__value = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IUnicodeCharactersStatics>(thisPtr).IsHighSurrogate(codepoint);
704
__value = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IUnicodeCharactersStatics>(thisPtr).IsLowSurrogate(codepoint);
723
__value = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IUnicodeCharactersStatics>(thisPtr).IsSupplementary(codepoint);
742
__value = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IUnicodeCharactersStatics>(thisPtr).IsNoncharacter(codepoint);
761
__value = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IUnicodeCharactersStatics>(thisPtr).IsWhitespace(codepoint);
780
__value = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IUnicodeCharactersStatics>(thisPtr).IsAlphabetic(codepoint);
799
__value = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IUnicodeCharactersStatics>(thisPtr).IsCased(codepoint);
818
__value = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IUnicodeCharactersStatics>(thisPtr).IsUppercase(codepoint);
837
__value = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IUnicodeCharactersStatics>(thisPtr).IsLowercase(codepoint);
856
__value = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IUnicodeCharactersStatics>(thisPtr).IsIdStart(codepoint);
875
__value = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IUnicodeCharactersStatics>(thisPtr).IsIdContinue(codepoint);
894
__value = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IUnicodeCharactersStatics>(thisPtr).IsGraphemeBase(codepoint);
913
__value = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IUnicodeCharactersStatics>(thisPtr).IsGraphemeExtend(codepoint);
932
__value = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IUnicodeCharactersStatics>(thisPtr).GetNumericType(codepoint);
951
__value = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IUnicodeCharactersStatics>(thisPtr).GetGeneralCategory(codepoint);
1143
var nativeVftbl = (IntPtr*)
ComWrappersSupport
.AllocateVtableMemory(typeof(Vftbl), Marshal.SizeOf<global::WinRT.IInspectable.Vftbl>() + sizeof(IntPtr) * 3);
1156
__value = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IWordSegment>(thisPtr).AlternateForms;
1175
__value = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IWordSegment>(thisPtr).SourceTextSegment;
1194
__value = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IWordSegment>(thisPtr).Text;
1295
var nativeVftbl = (IntPtr*)
ComWrappersSupport
.AllocateVtableMemory(typeof(Vftbl), Marshal.SizeOf<global::WinRT.IInspectable.Vftbl>() + sizeof(IntPtr) * 4);
1308
__result = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IWordsSegmenter>(thisPtr).GetTokenAt(MarshalString.FromAbi(text), startIndex);
1327
__result = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IWordsSegmenter>(thisPtr).GetTokens(MarshalString.FromAbi(text));
1344
global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IWordsSegmenter>(thisPtr).Tokenize(MarshalString.FromAbi(text), startIndex, global::MS.Internal.WindowsRuntime.ABI.Windows.Data.Text.WordSegmentsTokenizingHandler.FromAbi(handler));
1362
__value = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IWordsSegmenter>(thisPtr).ResolvedLanguage;
1483
var nativeVftbl = (IntPtr*)
ComWrappersSupport
.AllocateVtableMemory(typeof(Vftbl), Marshal.SizeOf<global::WinRT.IInspectable.Vftbl>() + sizeof(IntPtr) * 1);
1496
__result = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Data.Text.IWordsSegmenterFactory>(thisPtr).CreateWithLanguage(MarshalString.FromAbi(language));
1577
var nativeVftbl =
ComWrappersSupport
.AllocateVtableMemory(typeof(WordSegmentsTokenizingHandler), Marshal.SizeOf<global::WinRT.Interop.IDelegateVftbl>());
1585
managedDelegate is null ? null :
ComWrappersSupport
.CreateCCWForObject(managedDelegate).As<global::WinRT.Interop.IDelegateVftbl>(GuidGenerator.GetIID(typeof(WordSegmentsTokenizingHandler)));
1592
return abiDelegate is null ? null : (global::MS.Internal.WindowsRuntime.Windows.Data.Text.WordSegmentsTokenizingHandler)
ComWrappersSupport
.TryRegisterObjectForInterface(new global::MS.Internal.WindowsRuntime.Windows.Data.Text.WordSegmentsTokenizingHandler(new NativeDelegateWrapper(abiDelegate).Invoke), nativeDelegate);
1638
global::WinRT.
ComWrappersSupport
.MarshalDelegateInvoke(thisPtr, (global::MS.Internal.WindowsRuntime.Windows.Data.Text.WordSegmentsTokenizingHandler invoke) =>
MS\Internal\WindowsRuntime\Generated\Windows.Globalization.cs (18)
102
return new global::MS.Internal.WindowsRuntime.ABI.Windows.Globalization.ILanguage(
ComWrappersSupport
.GetObjectReferenceForInterface(ptr));
110
ComWrappersSupport
.RegisterObjectForInterface(this, ThisPtr);
234
var nativeVftbl = (IntPtr*)
ComWrappersSupport
.AllocateVtableMemory(typeof(Vftbl), Marshal.SizeOf<global::WinRT.IInspectable.Vftbl>() + sizeof(IntPtr) * 4);
247
__value = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Globalization.ILanguage>(thisPtr).DisplayName;
266
__value = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Globalization.ILanguage>(thisPtr).LanguageTag;
285
__value = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Globalization.ILanguage>(thisPtr).NativeName;
304
__value = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Globalization.ILanguage>(thisPtr).Script;
418
var nativeVftbl = (IntPtr*)
ComWrappersSupport
.AllocateVtableMemory(typeof(Vftbl), Marshal.SizeOf<global::WinRT.IInspectable.Vftbl>() + sizeof(IntPtr) * 1);
431
__value = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Globalization.ILanguage2>(thisPtr).LayoutDirection;
492
var nativeVftbl = (IntPtr*)
ComWrappersSupport
.AllocateVtableMemory(typeof(Vftbl), Marshal.SizeOf<global::WinRT.IInspectable.Vftbl>() + sizeof(IntPtr) * 1);
505
__value = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Globalization.ILanguageExtensionSubtags>(thisPtr).GetExtensionSubtags(MarshalString.FromAbi(singleton));
573
var nativeVftbl = (IntPtr*)
ComWrappersSupport
.AllocateVtableMemory(typeof(Vftbl), Marshal.SizeOf<global::WinRT.IInspectable.Vftbl>() + sizeof(IntPtr) * 1);
586
__result = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Globalization.ILanguageFactory>(thisPtr).CreateLanguage(MarshalString.FromAbi(languageTag));
656
var nativeVftbl = (IntPtr*)
ComWrappersSupport
.AllocateVtableMemory(typeof(Vftbl), Marshal.SizeOf<global::WinRT.IInspectable.Vftbl>() + sizeof(IntPtr) * 2);
669
__result = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Globalization.ILanguageStatics>(thisPtr).IsWellFormed(MarshalString.FromAbi(languageTag));
688
__value = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Globalization.ILanguageStatics>(thisPtr).CurrentInputMethodLanguageTag;
772
var nativeVftbl = (IntPtr*)
ComWrappersSupport
.AllocateVtableMemory(typeof(Vftbl), Marshal.SizeOf<global::WinRT.IInspectable.Vftbl>() + sizeof(IntPtr) * 1);
785
__result = global::WinRT.
ComWrappersSupport
.FindObject<global::MS.Internal.WindowsRuntime.Windows.Globalization.ILanguageStatics2>(thisPtr).TrySetInputMethodLanguageTag(MarshalString.FromAbi(languageTag));
MS\Internal\WindowsRuntime\Generated\WinRT.cs (1)
260
return
ComWrappersSupport
.GetObjectReferenceForInterface(instancePtr).As<I>();
MS\Internal\WindowsRuntime\Generated\WinRT\ComWrappersSupport.net5.cs (3)
73
var entries =
ComWrappersSupport
.GetInterfaceTableEntries(obj);
105
IObjectReference objRef =
ComWrappersSupport
.GetObjectReferenceForInterface(externalComObject);
129
if (
ComWrappersSupport
.TryUnwrapObject(obj, out var objRef))
MS\Internal\WindowsRuntime\Generated\WinRT\ExceptionHelpers.cs (3)
114
ex =
ComWrappersSupport
.FindObject<Exception>(languageException.ThisPtr);
192
using var managedExceptionWrapper =
ComWrappersSupport
.CreateCCWForObject(ex);
198
using var iErrorInfo =
ComWrappersSupport
.CreateCCWForObject(new ManagedExceptionErrorInfo(ex));
MS\Internal\WindowsRuntime\Generated\WinRT\IInspectable.cs (2)
55
iids =
ComWrappersSupport
.GetInspectableInfo(pThis).IIDs;
70
string runtimeClassName =
ComWrappersSupport
.GetInspectableInfo(pThis).RuntimeClassName;
MS\Internal\WindowsRuntime\Generated\WinRT\Interop\ExceptionErrorInfo.cs (6)
117
guid =
ComWrappersSupport
.FindObject<global::WinRT.Interop.IErrorInfo>(thisPtr).GetGuid();
133
_source =
ComWrappersSupport
.FindObject<global::WinRT.Interop.IErrorInfo>(thisPtr).GetSource();
151
_description =
ComWrappersSupport
.FindObject<global::WinRT.Interop.IErrorInfo>(thisPtr).GetDescription();
169
_helpFile =
ComWrappersSupport
.FindObject<global::WinRT.Interop.IErrorInfo>(thisPtr).GetHelpFile();
187
_helpFileContent =
ComWrappersSupport
.FindObject<global::WinRT.Interop.IErrorInfo>(thisPtr).GetHelpFileContent();
350
return global::WinRT.
ComWrappersSupport
.FindObject<global::WinRT.Interop.ISupportErrorInfo>(thisPtr).InterfaceSupportsErrorInfo(guid) ? 0 : 1;
MS\Internal\WindowsRuntime\Generated\WinRT\Interop\IUnknownVftbl.cs (1)
31
return
ComWrappersSupport
.IUnknownVftbl;
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (4)
913
if (unwrapObject &&
ComWrappersSupport
.TryUnwrapObject(o, out var objRef))
917
return
ComWrappersSupport
.CreateCCWForObject(o);
933
return
ComWrappersSupport
.FindObject<object>(unknownObjRef.ThisPtr);
946
return
ComWrappersSupport
.CreateRcwForComObject(ptr);
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IEnumerable.cs (4)
38
obj is null ? null :
ComWrappersSupport
.CreateCCWForObject(obj).As<Vftbl>(GuidGenerator.GetIID(typeof(IEnumerable<T>)));
129
var __this = global::WinRT.
ComWrappersSupport
.FindObject<global::System.Collections.Generic.IEnumerable<T>>(thisPtr);
194
obj is null ? null :
ComWrappersSupport
.CreateCCWForObject(obj).As<Vftbl>(GuidGenerator.GetIID(typeof(IEnumerator<T>)));
463
var __this = global::WinRT.
ComWrappersSupport
.FindObject<global::System.Collections.Generic.IEnumerator<T>>(thisPtr);
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IReadOnlyList.cs (2)
33
obj is null ? null :
ComWrappersSupport
.CreateCCWForObject(obj).As<Vftbl>(GuidGenerator.GetIID(typeof(IReadOnlyList<T>)));
254
var __this = global::WinRT.
ComWrappersSupport
.FindObject<global::System.Collections.Generic.IReadOnlyList<T>>(thisPtr);