// ------------------------------------------------------------------------------ // <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,SYSLIB1092,CS3021,CS3019 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 { namespace System.Ole { [Guid("7BF80981-BF32-101A-8BBB-00AA00300CAB")] [SupportedOSPlatform("windows5.0")] [global::System.CodeDom.Compiler.GeneratedCode("Microsoft.Windows.CsWin32", "0.3.287+85e3fa26dd.RR")] internal unsafe partial struct IPictureDisp :IComIID { /// <inheritdoc cref="QueryInterface(global::System.Guid*, void**)"/> [OverloadResolutionPriority(1)] internal unsafe winmdroot.Foundation.HRESULT QueryInterface(in global::System.Guid riid, out void* ppvObject) { fixed (void** ppvObjectLocal = &ppvObject) { fixed (global::System.Guid* riidLocal = &riid) { winmdroot.Foundation.HRESULT __result = this.QueryInterface(riidLocal, ppvObjectLocal); return __result; } } } public unsafe winmdroot.Foundation.HRESULT QueryInterface(global::System.Guid* riid, void** ppvObject) { return ((delegate *unmanaged [Stdcall]<IPictureDisp*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT>)lpVtbl[0])((IPictureDisp*)Unsafe.AsPointer(ref this), riid, ppvObject); } public uint AddRef() { return ((delegate *unmanaged [Stdcall]<IPictureDisp*,uint>)lpVtbl[1])((IPictureDisp*)Unsafe.AsPointer(ref this)); } public uint Release() { return ((delegate *unmanaged [Stdcall]<IPictureDisp*,uint>)lpVtbl[2])((IPictureDisp*)Unsafe.AsPointer(ref this)); } /// <inheritdoc cref="GetTypeInfoCount(uint*)"/> [OverloadResolutionPriority(1)] internal unsafe winmdroot.Foundation.HRESULT GetTypeInfoCount(out uint pctinfo) { fixed (uint* pctinfoLocal = &pctinfo) { winmdroot.Foundation.HRESULT __result = this.GetTypeInfoCount(pctinfoLocal); return __result; } } public unsafe winmdroot.Foundation.HRESULT GetTypeInfoCount(uint* pctinfo) { return ((delegate *unmanaged [Stdcall]<IPictureDisp*,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IPictureDisp*)Unsafe.AsPointer(ref this), pctinfo); } public unsafe winmdroot.Foundation.HRESULT GetTypeInfo(uint iTInfo, uint lcid, winmdroot.System.Com.ITypeInfo** ppTInfo) { return ((delegate *unmanaged [Stdcall]<IPictureDisp*,uint ,uint ,winmdroot.System.Com.ITypeInfo** ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((IPictureDisp*)Unsafe.AsPointer(ref this), iTInfo, lcid, ppTInfo); } /// <inheritdoc cref="GetIDsOfNames(global::System.Guid*, winmdroot.Foundation.PWSTR*, uint, uint, int*)"/> internal unsafe winmdroot.Foundation.HRESULT GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) { fixed (int* rgDispIdLocal = rgDispId) { fixed (winmdroot.Foundation.PWSTR* rgszNamesLocal = rgszNames) { fixed (global::System.Guid* riidLocal = &riid) { if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException(); winmdroot.Foundation.HRESULT __result = this.GetIDsOfNames(riidLocal, rgszNamesLocal, (uint )(rgDispId.IsEmpty ? rgszNames.Length : rgDispId.Length), lcid, rgDispIdLocal); return __result; } } } } public unsafe winmdroot.Foundation.HRESULT GetIDsOfNames(global::System.Guid* riid, winmdroot.Foundation.PWSTR* rgszNames, uint cNames, uint lcid, int* rgDispId) { return ((delegate *unmanaged [Stdcall]<IPictureDisp*,global::System.Guid* ,winmdroot.Foundation.PWSTR* ,uint ,uint ,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((IPictureDisp*)Unsafe.AsPointer(ref this), riid, rgszNames, cNames, lcid, rgDispId); } /// <inheritdoc cref="Invoke(int, global::System.Guid*, uint, winmdroot.System.Com.DISPATCH_FLAGS, winmdroot.System.Com.DISPPARAMS*, winmdroot.System.Variant.VARIANT*, winmdroot.System.Com.EXCEPINFO*, uint*)"/> [OverloadResolutionPriority(1)] internal unsafe winmdroot.Foundation.HRESULT Invoke(int dispIdMember, in global::System.Guid riid, uint lcid, winmdroot.System.Com.DISPATCH_FLAGS wFlags, in 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) { fixed (global::System.Guid* riidLocal = &riid) { winmdroot.Foundation.HRESULT __result = this.Invoke(dispIdMember, riidLocal, lcid, wFlags, pDispParamsLocal, pVarResultLocal, pExcepInfoLocal, puArgErrLocal); return __result; } } } } } } /// <inheritdoc cref="Invoke(int, global::System.Guid*, uint, winmdroot.System.Com.DISPATCH_FLAGS, winmdroot.System.Com.DISPPARAMS*, winmdroot.System.Variant.VARIANT*, winmdroot.System.Com.EXCEPINFO*, uint*)"/> internal unsafe winmdroot.Foundation.HRESULT Invoke(int dispIdMember, in global::System.Guid riid, uint lcid, winmdroot.System.Com.DISPATCH_FLAGS wFlags, in winmdroot.System.Com.DISPPARAMS pDispParams) { fixed (winmdroot.System.Com.DISPPARAMS* pDispParamsLocal = &pDispParams) { fixed (global::System.Guid* riidLocal = &riid) { winmdroot.Foundation.HRESULT __result = this.Invoke(dispIdMember, riidLocal, lcid, wFlags, pDispParamsLocal, default(winmdroot.System.Variant.VARIANT* ), default(winmdroot.System.Com.EXCEPINFO* ), default(uint* )); return __result; } } } public unsafe winmdroot.Foundation.HRESULT Invoke(int dispIdMember, global::System.Guid* riid, uint lcid, winmdroot.System.Com.DISPATCH_FLAGS wFlags, winmdroot.System.Com.DISPPARAMS* pDispParams, [Optional] winmdroot.System.Variant.VARIANT* pVarResult, [Optional] winmdroot.System.Com.EXCEPINFO* pExcepInfo, [Optional] uint* puArgErr) { return ((delegate *unmanaged [Stdcall]<IPictureDisp*,int ,global::System.Guid* ,uint ,winmdroot.System.Com.DISPATCH_FLAGS ,winmdroot.System.Com.DISPPARAMS* ,winmdroot.System.Variant.VARIANT* ,winmdroot.System.Com.EXCEPINFO* ,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((IPictureDisp*)Unsafe.AsPointer(ref this), dispIdMember, riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr); } internal unsafe global::Windows.Win32.Foundation.HRESULT QueryInterface<T>(out T* ppv) where T : unmanaged { Guid guid = typeof(T).GUID; void* pv; var hr = this.QueryInterface(&guid, &pv); if (hr.Succeeded) { ppv = (T*)pv; } else { ppv = null; } return hr; } internal struct Vtbl { internal delegate *unmanaged [Stdcall]<IPictureDisp*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT> QueryInterface_1; internal delegate *unmanaged [Stdcall]<IPictureDisp*,uint> AddRef_2; internal delegate *unmanaged [Stdcall]<IPictureDisp*,uint> Release_3; internal delegate *unmanaged [Stdcall]<IPictureDisp*,uint* ,winmdroot.Foundation.HRESULT> GetTypeInfoCount_4; internal delegate *unmanaged [Stdcall]<IPictureDisp*,uint ,uint ,winmdroot.System.Com.ITypeInfo** ,winmdroot.Foundation.HRESULT> GetTypeInfo_5; internal delegate *unmanaged [Stdcall]<IPictureDisp*,global::System.Guid* ,winmdroot.Foundation.PWSTR* ,uint ,uint ,int* ,winmdroot.Foundation.HRESULT> GetIDsOfNames_6; internal delegate *unmanaged [Stdcall]<IPictureDisp*,int ,global::System.Guid* ,uint ,winmdroot.System.Com.DISPATCH_FLAGS ,winmdroot.System.Com.DISPPARAMS* ,winmdroot.System.Variant.VARIANT* ,winmdroot.System.Com.EXCEPINFO* ,uint* ,winmdroot.Foundation.HRESULT> Invoke_7; } private void** lpVtbl; /// <summary>The IID guid for this interface.</summary> /// <value>{7bf80981-bf32-101a-8bbb-00aa00300cab}</value> internal static readonly Guid IID_Guid = new Guid(0x7BF80981, 0xBF32, 0x101A, 0x8B, 0xBB, 0x00, 0xAA, 0x00, 0x30, 0x0C, 0xAB); readonly ref readonly Guid IComIID.Guid { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => ref Unsafe.AsRef(in IID_Guid); } [Guid("7BF80981-BF32-101A-8BBB-00AA00300CAB"),InterfaceType(ComInterfaceType.InterfaceIsIDispatch),ComImport()] [SupportedOSPlatform("windows5.0")] internal interface Interface { } } } }