|
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
#pragma warning disable CS1591,CS1573,CS0465,CS0649,CS8019,CS1570,CS1584,CS1658,CS0436,CS8981
using global::System;
using global::System.Diagnostics;
using global::System.Diagnostics.CodeAnalysis;
using global::System.Runtime.CompilerServices;
using global::System.Runtime.InteropServices;
using global::System.Runtime.Versioning;
using winmdroot = global::Windows.Win32;
namespace Windows.Win32
{
[global::System.CodeDom.Compiler.GeneratedCode("Microsoft.Windows.CsWin32", "0.3.151+58e949951d.RR")]
internal static partial class System_Com_ITypeInfo_Extensions
{
/// <inheritdoc cref="winmdroot.System.Com.ITypeInfo.Interface.GetTypeAttr(winmdroot.System.Com.TYPEATTR**)"/>
internal static unsafe winmdroot.Foundation.HRESULT GetTypeAttr(this winmdroot.System.Com.ITypeInfo.Interface @this, out winmdroot.System.Com.TYPEATTR* ppTypeAttr)
{
fixed (winmdroot.System.Com.TYPEATTR** ppTypeAttrLocal = &ppTypeAttr)
{
winmdroot.Foundation.HRESULT __result = @this.GetTypeAttr(ppTypeAttrLocal);
return __result;
}
}
/// <inheritdoc cref="winmdroot.System.Com.ITypeInfo.Interface.GetFuncDesc(uint, winmdroot.System.Com.FUNCDESC**)"/>
internal static unsafe winmdroot.Foundation.HRESULT GetFuncDesc(this winmdroot.System.Com.ITypeInfo.Interface @this, uint index, out winmdroot.System.Com.FUNCDESC* ppFuncDesc)
{
fixed (winmdroot.System.Com.FUNCDESC** ppFuncDescLocal = &ppFuncDesc)
{
winmdroot.Foundation.HRESULT __result = @this.GetFuncDesc(index, ppFuncDescLocal);
return __result;
}
}
/// <inheritdoc cref="winmdroot.System.Com.ITypeInfo.Interface.GetVarDesc(uint, winmdroot.System.Com.VARDESC**)"/>
internal static unsafe winmdroot.Foundation.HRESULT GetVarDesc(this winmdroot.System.Com.ITypeInfo.Interface @this, uint index, out winmdroot.System.Com.VARDESC* ppVarDesc)
{
fixed (winmdroot.System.Com.VARDESC** ppVarDescLocal = &ppVarDesc)
{
winmdroot.Foundation.HRESULT __result = @this.GetVarDesc(index, ppVarDescLocal);
return __result;
}
}
/// <inheritdoc cref="winmdroot.System.Com.ITypeInfo.Interface.GetNames(int, winmdroot.Foundation.BSTR*, uint, uint*)"/>
internal static unsafe winmdroot.Foundation.HRESULT GetNames(this winmdroot.System.Com.ITypeInfo.Interface @this, int memid, winmdroot.Foundation.BSTR* rgBstrNames, uint cMaxNames, out uint pcNames)
{
fixed (uint* pcNamesLocal = &pcNames)
{
winmdroot.Foundation.HRESULT __result = @this.GetNames(memid, rgBstrNames, cMaxNames, pcNamesLocal);
return __result;
}
}
/// <inheritdoc cref="winmdroot.System.Com.ITypeInfo.Interface.GetRefTypeOfImplType(uint, uint*)"/>
internal static unsafe winmdroot.Foundation.HRESULT GetRefTypeOfImplType(this winmdroot.System.Com.ITypeInfo.Interface @this, uint index, out uint pRefType)
{
fixed (uint* pRefTypeLocal = &pRefType)
{
winmdroot.Foundation.HRESULT __result = @this.GetRefTypeOfImplType(index, pRefTypeLocal);
return __result;
}
}
/// <inheritdoc cref="winmdroot.System.Com.ITypeInfo.Interface.GetImplTypeFlags(uint, winmdroot.System.Com.IMPLTYPEFLAGS*)"/>
internal static unsafe winmdroot.Foundation.HRESULT GetImplTypeFlags(this winmdroot.System.Com.ITypeInfo.Interface @this, uint index, out winmdroot.System.Com.IMPLTYPEFLAGS pImplTypeFlags)
{
fixed (winmdroot.System.Com.IMPLTYPEFLAGS* pImplTypeFlagsLocal = &pImplTypeFlags)
{
winmdroot.Foundation.HRESULT __result = @this.GetImplTypeFlags(index, pImplTypeFlagsLocal);
return __result;
}
}
/// <inheritdoc cref="winmdroot.System.Com.ITypeInfo.Interface.GetIDsOfNames(winmdroot.Foundation.PWSTR*, uint, int*)"/>
internal static unsafe winmdroot.Foundation.HRESULT GetIDsOfNames(this winmdroot.System.Com.ITypeInfo.Interface @this, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, Span<int> pMemId)
{
fixed (int* pMemIdLocal = pMemId)
{
fixed (winmdroot.Foundation.PWSTR* rgszNamesLocal = rgszNames)
{
if (rgszNames.Length != pMemId.Length) throw new ArgumentException();
winmdroot.Foundation.HRESULT __result = @this.GetIDsOfNames(rgszNamesLocal, (uint )pMemId.Length, pMemIdLocal);
return __result;
}
}
}
/// <inheritdoc cref="winmdroot.System.Com.ITypeInfo.Interface.Invoke(void*, int, winmdroot.System.Com.DISPATCH_FLAGS, winmdroot.System.Com.DISPPARAMS*, winmdroot.System.Variant.VARIANT*, winmdroot.System.Com.EXCEPINFO*, uint*)"/>
internal static unsafe winmdroot.Foundation.HRESULT Invoke(this winmdroot.System.Com.ITypeInfo.Interface @this, void* pvInstance, int memid, winmdroot.System.Com.DISPATCH_FLAGS wFlags, ref winmdroot.System.Com.DISPPARAMS pDispParams, out winmdroot.System.Variant.VARIANT pVarResult, out winmdroot.System.Com.EXCEPINFO pExcepInfo, out uint puArgErr)
{
fixed (uint* puArgErrLocal = &puArgErr)
{
fixed (winmdroot.System.Com.EXCEPINFO* pExcepInfoLocal = &pExcepInfo)
{
fixed (winmdroot.System.Variant.VARIANT* pVarResultLocal = &pVarResult)
{
fixed (winmdroot.System.Com.DISPPARAMS* pDispParamsLocal = &pDispParams)
{
winmdroot.Foundation.HRESULT __result = @this.Invoke(pvInstance, memid, wFlags, pDispParamsLocal, pVarResultLocal, pExcepInfoLocal, puArgErrLocal);
return __result;
}
}
}
}
}
/// <inheritdoc cref="winmdroot.System.Com.ITypeInfo.Interface.GetDocumentation(int, winmdroot.Foundation.BSTR*, winmdroot.Foundation.BSTR*, uint*, winmdroot.Foundation.BSTR*)"/>
internal static unsafe winmdroot.Foundation.HRESULT GetDocumentation(this winmdroot.System.Com.ITypeInfo.Interface @this, int memid, winmdroot.Foundation.BSTR* pBstrName, winmdroot.Foundation.BSTR* pBstrDocString, out uint pdwHelpContext, winmdroot.Foundation.BSTR* pBstrHelpFile)
{
fixed (uint* pdwHelpContextLocal = &pdwHelpContext)
{
winmdroot.Foundation.HRESULT __result = @this.GetDocumentation(memid, pBstrName, pBstrDocString, pdwHelpContextLocal, pBstrHelpFile);
return __result;
}
}
/// <inheritdoc cref="winmdroot.System.Com.ITypeInfo.Interface.GetDllEntry(int, winmdroot.System.Com.INVOKEKIND, winmdroot.Foundation.BSTR*, winmdroot.Foundation.BSTR*, ushort*)"/>
internal static unsafe winmdroot.Foundation.HRESULT GetDllEntry(this winmdroot.System.Com.ITypeInfo.Interface @this, int memid, winmdroot.System.Com.INVOKEKIND invKind, winmdroot.Foundation.BSTR* pBstrDllName, winmdroot.Foundation.BSTR* pBstrName, out ushort pwOrdinal)
{
fixed (ushort* pwOrdinalLocal = &pwOrdinal)
{
winmdroot.Foundation.HRESULT __result = @this.GetDllEntry(memid, invKind, pBstrDllName, pBstrName, pwOrdinalLocal);
return __result;
}
}
/// <inheritdoc cref="winmdroot.System.Com.ITypeInfo.Interface.AddressOfMember(int, winmdroot.System.Com.INVOKEKIND, void**)"/>
internal static unsafe winmdroot.Foundation.HRESULT AddressOfMember(this winmdroot.System.Com.ITypeInfo.Interface @this, int memid, winmdroot.System.Com.INVOKEKIND invKind, out void* ppv)
{
fixed (void** ppvLocal = &ppv)
{
winmdroot.Foundation.HRESULT __result = @this.AddressOfMember(memid, invKind, ppvLocal);
return __result;
}
}
/// <inheritdoc cref="winmdroot.System.Com.ITypeInfo.Interface.CreateInstance(winmdroot.System.Com.IUnknown*, global::System.Guid*, void**)"/>
internal static unsafe winmdroot.Foundation.HRESULT CreateInstance(this winmdroot.System.Com.ITypeInfo.Interface @this, winmdroot.System.Com.IUnknown* pUnkOuter, in global::System.Guid riid, out void* ppvObj)
{
fixed (void** ppvObjLocal = &ppvObj)
{
fixed (global::System.Guid* riidLocal = &riid)
{
winmdroot.Foundation.HRESULT __result = @this.CreateInstance(pUnkOuter, riidLocal, ppvObjLocal);
return __result;
}
}
}
/// <inheritdoc cref="winmdroot.System.Com.ITypeInfo.Interface.GetContainingTypeLib(winmdroot.System.Com.ITypeLib**, uint*)"/>
internal static unsafe winmdroot.Foundation.HRESULT GetContainingTypeLib(this winmdroot.System.Com.ITypeInfo.Interface @this, winmdroot.System.Com.ITypeLib** ppTLib, out uint pIndex)
{
fixed (uint* pIndexLocal = &pIndex)
{
winmdroot.Foundation.HRESULT __result = @this.GetContainingTypeLib(ppTLib, pIndexLocal);
return __result;
}
}
/// <inheritdoc cref="winmdroot.System.Com.ITypeInfo.Interface.ReleaseTypeAttr(winmdroot.System.Com.TYPEATTR*)"/>
internal static unsafe void ReleaseTypeAttr(this winmdroot.System.Com.ITypeInfo.Interface @this, in winmdroot.System.Com.TYPEATTR pTypeAttr)
{
fixed (winmdroot.System.Com.TYPEATTR* pTypeAttrLocal = &pTypeAttr)
{
@this.ReleaseTypeAttr(pTypeAttrLocal);
}
}
/// <inheritdoc cref="winmdroot.System.Com.ITypeInfo.Interface.ReleaseFuncDesc(winmdroot.System.Com.FUNCDESC*)"/>
internal static unsafe void ReleaseFuncDesc(this winmdroot.System.Com.ITypeInfo.Interface @this, in winmdroot.System.Com.FUNCDESC pFuncDesc)
{
fixed (winmdroot.System.Com.FUNCDESC* pFuncDescLocal = &pFuncDesc)
{
@this.ReleaseFuncDesc(pFuncDescLocal);
}
}
/// <inheritdoc cref="winmdroot.System.Com.ITypeInfo.Interface.ReleaseVarDesc(winmdroot.System.Com.VARDESC*)"/>
internal static unsafe void ReleaseVarDesc(this winmdroot.System.Com.ITypeInfo.Interface @this, in winmdroot.System.Com.VARDESC pVarDesc)
{
fixed (winmdroot.System.Com.VARDESC* pVarDescLocal = &pVarDesc)
{
@this.ReleaseVarDesc(pVarDescLocal);
}
}
}
}
|