// <auto-generated /> #pragma warning disable CS0612, CS0618, CS0649, CS1591 [global::System.Runtime.InteropServices.StructLayoutAttribute(global::System.Runtime.InteropServices.LayoutKind.Sequential)] file unsafe struct InterfaceImplementationVtable { public delegate* unmanaged[MemberFunction]<void*, global::System.Guid*, void**, int> QueryInterface_0; public delegate* unmanaged[MemberFunction]<void*, uint> AddRef_1; public delegate* unmanaged[MemberFunction]<void*, uint> Release_2; public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ushort*, ushort, ulong, int> AddSymbol_3; public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ushort, global::Microsoft.DiaSymReader.OMF, int, int, int> AddSection_4; public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, ushort*, ushort*, nuint*, int> OpenModW_5; public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, nuint, int> CloseMod_6; public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, nuint, byte*, int, int> ModAddSymbols_7; public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, nuint, ushort, int, int, uint, uint, uint, int> ModAddSecContribEx_8; public delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, char*, nint, int> QueryPDBNameExW_9; } file unsafe sealed class InterfaceInformation : global::System.Runtime.InteropServices.Marshalling.IIUnknownInterfaceType { public static global::System.Guid Iid { get; } = new([27, 229, 41, 176, 85, 76, 226, 79, 185, 147, 159, 123, 193, 241, 13, 180]); public static void** ManagedVirtualMethodTable => (void**)global::System.Runtime.CompilerServices.Unsafe.AsPointer(in InterfaceImplementation.Vtable); } [global::System.Runtime.InteropServices.DynamicInterfaceCastableImplementationAttribute] file unsafe interface InterfaceImplementation : global::Microsoft.DiaSymReader.ISymNGenWriter2 { [global::System.Runtime.CompilerServices.FixedAddressValueTypeAttribute] public static readonly InterfaceImplementationVtable Vtable; static InterfaceImplementation() { global::System.Runtime.InteropServices.NativeMemory.Copy( global::System.Runtime.InteropServices.Marshalling.StrategyBasedComWrappers.DefaultIUnknownInterfaceDetailsStrategy.GetIUnknownDerivedDetails(typeof(global::Microsoft.DiaSymReader.ISymNGenWriter).TypeHandle).ManagedVirtualMethodTable, global::System.Runtime.CompilerServices.Unsafe.AsPointer(ref Vtable), (nuint)(sizeof(void*) * 5)); Vtable.OpenModW_5 = &ABI_OpenModW; Vtable.CloseMod_6 = &ABI_CloseMod; Vtable.ModAddSymbols_7 = &ABI_ModAddSymbols; Vtable.ModAddSecContribEx_8 = &ABI_ModAddSecContribEx; Vtable.QueryPDBNameExW_9 = &ABI_QueryPDBNameExW; } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.42103")] [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute] void global::Microsoft.DiaSymReader.ISymNGenWriter2.OpenModW(string wszModule, string wszObjFile, out nuint ppmod) { var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymNGenWriter2)); var __target = ((delegate* unmanaged[MemberFunction]<void*, ushort*, ushort*, nuint*, int> )__vtable[5]); { ppmod = default; int __invokeRetVal; // Pin - Pin data in preparation for calling the P/Invoke. fixed (nuint* __ppmod_native = &ppmod) fixed (void* __wszObjFile_native = &global::System.Runtime.InteropServices.Marshalling.Utf16StringMarshaller.GetPinnableReference(wszObjFile)) fixed (void* __wszModule_native = &global::System.Runtime.InteropServices.Marshalling.Utf16StringMarshaller.GetPinnableReference(wszModule)) { __invokeRetVal = __target(__this, (ushort*)__wszModule_native, (ushort*)__wszObjFile_native, __ppmod_native); } // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call. global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([27, 229, 41, 176, 85, 76, 226, 79, 185, 147, 159, 123, 193, 241, 13, 180]), (global::System.IntPtr)__this); global::System.GC.KeepAlive(this); } } [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })] internal static int ABI_OpenModW(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, ushort* __wszModule_native, ushort* __wszObjFile_native, nuint* __ppmod_native__param) { global::Microsoft.DiaSymReader.ISymNGenWriter2 @this = default; string wszModule = default; string wszObjFile = default; ref nuint __ppmod_native = ref *__ppmod_native__param; nuint ppmod = default; int __retVal = default; try { // Unmarshal - Convert native data to managed data. wszObjFile = global::System.Runtime.InteropServices.Marshalling.Utf16StringMarshaller.ConvertToManaged(__wszObjFile_native); wszModule = global::System.Runtime.InteropServices.Marshalling.Utf16StringMarshaller.ConvertToManaged(__wszModule_native); @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.DiaSymReader.ISymNGenWriter2>(__this_native); @this.OpenModW(wszModule, wszObjFile, out ppmod); // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call. __retVal = 0; // S_OK // Marshal - Convert managed data to native data. __ppmod_native = ppmod; } catch (global::System.Exception __exception) { __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception); } return __retVal; } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.42103")] [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute] void global::Microsoft.DiaSymReader.ISymNGenWriter2.CloseMod(nuint pmod) { var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymNGenWriter2)); var __target = ((delegate* unmanaged[MemberFunction]<void*, nuint, int> )__vtable[6]); { int __invokeRetVal; { __invokeRetVal = __target(__this, pmod); } // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call. global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([27, 229, 41, 176, 85, 76, 226, 79, 185, 147, 159, 123, 193, 241, 13, 180]), (global::System.IntPtr)__this); global::System.GC.KeepAlive(this); } } [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })] internal static int ABI_CloseMod(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, nuint pmod) { global::Microsoft.DiaSymReader.ISymNGenWriter2 @this = default; int __retVal = default; try { // Unmarshal - Convert native data to managed data. @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.DiaSymReader.ISymNGenWriter2>(__this_native); @this.CloseMod(pmod); // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call. __retVal = 0; // S_OK } catch (global::System.Exception __exception) { __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception); } return __retVal; } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.42103")] [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute] void global::Microsoft.DiaSymReader.ISymNGenWriter2.ModAddSymbols(nuint pmod, byte[] pbSym, int cb) { var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymNGenWriter2)); var __target = ((delegate* unmanaged[MemberFunction]<void*, nuint, byte*, int, int> )__vtable[7]); { int __invokeRetVal; // Pin - Pin data in preparation for calling the P/Invoke. fixed (void* __pbSym_native = &global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.ManagedToUnmanagedIn.GetPinnableReference(pbSym)) { __invokeRetVal = __target(__this, pmod, (byte*)__pbSym_native, cb); } // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call. global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([27, 229, 41, 176, 85, 76, 226, 79, 185, 147, 159, 123, 193, 241, 13, 180]), (global::System.IntPtr)__this); global::System.GC.KeepAlive(this); } } [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })] internal static int ABI_ModAddSymbols(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, nuint pmod, byte* __pbSym_native, int cb) { global::Microsoft.DiaSymReader.ISymNGenWriter2 @this = default; byte[] pbSym = default; int __retVal = default; // Setup - Perform required setup. int __pbSym_native__numElements; __pbSym_native__numElements = default; try { // Unmarshal - Convert native data to managed data. __pbSym_native__numElements = -1; pbSym = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.AllocateContainerForManagedElements(__pbSym_native, __pbSym_native__numElements); global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetUnmanagedValuesSource(__pbSym_native, __pbSym_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<byte, byte>.GetManagedValuesDestination(pbSym)); @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.DiaSymReader.ISymNGenWriter2>(__this_native); @this.ModAddSymbols(pmod, pbSym, cb); // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call. __retVal = 0; // S_OK } catch (global::System.Exception __exception) { __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception); } return __retVal; } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.42103")] [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute] void global::Microsoft.DiaSymReader.ISymNGenWriter2.ModAddSecContribEx(nuint pmod, ushort isect, int off, int cb, uint dwCharacteristics, uint dwDataCrc, uint dwRelocCrc) { var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymNGenWriter2)); var __target = ((delegate* unmanaged[MemberFunction]<void*, nuint, ushort, int, int, uint, uint, uint, int> )__vtable[8]); { int __invokeRetVal; { __invokeRetVal = __target(__this, pmod, isect, off, cb, dwCharacteristics, dwDataCrc, dwRelocCrc); } // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call. global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([27, 229, 41, 176, 85, 76, 226, 79, 185, 147, 159, 123, 193, 241, 13, 180]), (global::System.IntPtr)__this); global::System.GC.KeepAlive(this); } } [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })] internal static int ABI_ModAddSecContribEx(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, nuint pmod, ushort isect, int off, int cb, uint dwCharacteristics, uint dwDataCrc, uint dwRelocCrc) { global::Microsoft.DiaSymReader.ISymNGenWriter2 @this = default; int __retVal = default; try { // Unmarshal - Convert native data to managed data. @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.DiaSymReader.ISymNGenWriter2>(__this_native); @this.ModAddSecContribEx(pmod, isect, off, cb, dwCharacteristics, dwDataCrc, dwRelocCrc); // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call. __retVal = 0; // S_OK } catch (global::System.Exception __exception) { __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception); } return __retVal; } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.42103")] [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute] void global::Microsoft.DiaSymReader.ISymNGenWriter2.QueryPDBNameExW(char[] pdb, nint cchMax) { var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymNGenWriter2)); var __target = ((delegate* unmanaged[MemberFunction]<void*, char*, nint, int> )__vtable[9]); { int __invokeRetVal; // Pin - Pin data in preparation for calling the P/Invoke. fixed (void* __pdb_native = &global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.ManagedToUnmanagedIn.GetPinnableReference(pdb)) { __invokeRetVal = __target(__this, (char*)__pdb_native, cchMax); } // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call. global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([27, 229, 41, 176, 85, 76, 226, 79, 185, 147, 159, 123, 193, 241, 13, 180]), (global::System.IntPtr)__this); global::System.GC.KeepAlive(this); } } [global::System.Runtime.InteropServices.UnmanagedCallersOnlyAttribute(CallConvs = new[] { typeof(global::System.Runtime.CompilerServices.CallConvMemberFunction) })] internal static int ABI_QueryPDBNameExW(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, char* __pdb_native, nint cchMax) { global::Microsoft.DiaSymReader.ISymNGenWriter2 @this = default; char[] pdb = default; int __retVal = default; // Setup - Perform required setup. int __pdb_native__numElements; __pdb_native__numElements = default; try { // Unmarshal - Convert native data to managed data. __pdb_native__numElements = checked((int)(cchMax)); pdb = global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.AllocateContainerForManagedElements(__pdb_native, __pdb_native__numElements); global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetUnmanagedValuesSource(__pdb_native, __pdb_native__numElements).CopyTo(global::System.Runtime.InteropServices.Marshalling.ArrayMarshaller<char, char>.GetManagedValuesDestination(pdb)); @this = global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch.GetInstance<global::Microsoft.DiaSymReader.ISymNGenWriter2>(__this_native); @this.QueryPDBNameExW(pdb, cchMax); // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call. __retVal = 0; // S_OK } catch (global::System.Exception __exception) { __retVal = global::System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<int>.ConvertToUnmanaged(__exception); } return __retVal; } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.42103")] [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute] void global::Microsoft.DiaSymReader.ISymNGenWriter2.AddSymbol(string pSymbol, ushort iSection, ulong rva) { var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymNGenWriter2)); var __target = ((delegate* unmanaged[MemberFunction]<void*, ushort*, ushort, ulong, int> )__vtable[3]); { ushort* __pSymbol_native = default; int __invokeRetVal = default; // Setup - Perform required setup. scoped global::System.Runtime.InteropServices.Marshalling.BStrStringMarshaller.ManagedToUnmanagedIn __pSymbol_native__marshaller = new(); try { // Marshal - Convert managed data to native data. __pSymbol_native__marshaller.FromManaged(pSymbol, stackalloc byte[global::System.Runtime.InteropServices.Marshalling.BStrStringMarshaller.ManagedToUnmanagedIn.BufferSize]); { // PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned. __pSymbol_native = __pSymbol_native__marshaller.ToUnmanaged(); __invokeRetVal = __target(__this, __pSymbol_native, iSection, rva); } // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call. global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([27, 229, 41, 176, 85, 76, 226, 79, 185, 147, 159, 123, 193, 241, 13, 180]), (global::System.IntPtr)__this); global::System.GC.KeepAlive(this); } finally { // CleanupCallerAllocated - Perform cleanup of caller allocated resources. __pSymbol_native__marshaller.Free(); } } } [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.42103")] [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute] void global::Microsoft.DiaSymReader.ISymNGenWriter2.AddSection(ushort iSection, global::Microsoft.DiaSymReader.OMF flags, int offset, int cb) { var(__this, __vtable) = ((global::System.Runtime.InteropServices.Marshalling.IUnmanagedVirtualMethodTableProvider)this).GetVirtualMethodTableInfoForKey(typeof(global::Microsoft.DiaSymReader.ISymNGenWriter2)); var __target = ((delegate* unmanaged[MemberFunction]<void*, ushort, global::Microsoft.DiaSymReader.OMF, int, int, int> )__vtable[4]); { int __invokeRetVal; { __invokeRetVal = __target(__this, iSection, flags, offset, cb); } // NotifyForSuccessfulInvoke - Keep alive any managed objects that need to stay alive across the call. global::System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(__invokeRetVal, new([27, 229, 41, 176, 85, 76, 226, 79, 185, 147, 159, 123, 193, 241, 13, 180]), (global::System.IntPtr)__this); global::System.GC.KeepAlive(this); } } void global::Microsoft.DiaSymReader.ISymNGenWriter.AddSymbol(string pSymbol, ushort iSection, ulong rva) => throw new global::System.Diagnostics.UnreachableException(); void global::Microsoft.DiaSymReader.ISymNGenWriter.AddSection(ushort iSection, global::Microsoft.DiaSymReader.OMF flags, int offset, int cb) => throw new global::System.Diagnostics.UnreachableException(); } namespace Microsoft.DiaSymReader { [global::System.Runtime.InteropServices.Marshalling.IUnknownDerivedAttribute<InterfaceInformation, InterfaceImplementation>] internal unsafe partial interface ISymNGenWriter2 { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.42103")] [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute] new void AddSymbol(string pSymbol, ushort iSection, ulong rva) => ((global::Microsoft.DiaSymReader.ISymNGenWriter)this).AddSymbol(pSymbol, iSection, rva); [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.ComInterfaceGenerator", "11.0.14.42103")] [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute] new void AddSection(ushort iSection, global::Microsoft.DiaSymReader.OMF flags, int offset, int cb) => ((global::Microsoft.DiaSymReader.ISymNGenWriter)this).AddSection(iSection, flags, offset, cb); } }