// ------------------------------------------------------------------------------ // <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("00000127-0000-0000-C000-000000000046")] [CLSCompliant(false)] [SupportedOSPlatform("windows5.0")] [global::System.CodeDom.Compiler.GeneratedCode("Microsoft.Windows.CsWin32", "0.3.287+85e3fa26dd.RR")] internal unsafe partial struct IViewObject2 :winmdroot.IVTable<IViewObject2,IViewObject2.Vtbl>,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]<IViewObject2*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT>)lpVtbl[0])((IViewObject2*)Unsafe.AsPointer(ref this), riid, ppvObject); } public uint AddRef() { return ((delegate *unmanaged [Stdcall]<IViewObject2*,uint>)lpVtbl[1])((IViewObject2*)Unsafe.AsPointer(ref this)); } public uint Release() { return ((delegate *unmanaged [Stdcall]<IViewObject2*,uint>)lpVtbl[2])((IViewObject2*)Unsafe.AsPointer(ref this)); } /// <inheritdoc cref="Draw(winmdroot.System.Com.DVASPECT, int, void*, winmdroot.System.Com.DVTARGETDEVICE*, winmdroot.Graphics.Gdi.HDC, winmdroot.Graphics.Gdi.HDC, winmdroot.Foundation.RECTL*, winmdroot.Foundation.RECTL*, nint, nuint)"/> [OverloadResolutionPriority(1)] internal unsafe void Draw(winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, void* pvAspect, [Optional] winmdroot.System.Com.DVTARGETDEVICE* ptd, [Optional] winmdroot.Graphics.Gdi.HDC hdcTargetDev, winmdroot.Graphics.Gdi.HDC hdcDraw, [Optional] winmdroot.Foundation.RECTL? lprcBounds, [Optional] winmdroot.Foundation.RECTL? lprcWBounds, [Optional] nint pfnContinue, nuint dwContinue) { winmdroot.Foundation.RECTL lprcBoundsLocal = lprcBounds ?? default(winmdroot.Foundation.RECTL); winmdroot.Foundation.RECTL lprcWBoundsLocal = lprcWBounds ?? default(winmdroot.Foundation.RECTL); this.Draw(dwDrawAspect, lindex, pvAspect, ptd, hdcTargetDev, hdcDraw, lprcBounds.HasValue ? &lprcBoundsLocal : null, lprcWBounds.HasValue ? &lprcWBoundsLocal : null, pfnContinue, dwContinue); } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT Draw(IViewObject2* pThis, winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, void* pvAspect, [Optional] winmdroot.System.Com.DVTARGETDEVICE* ptd, [Optional] winmdroot.Graphics.Gdi.HDC hdcTargetDev, winmdroot.Graphics.Gdi.HDC hdcDraw, [Optional] winmdroot.Foundation.RECTL* lprcBounds, [Optional] winmdroot.Foundation.RECTL* lprcWBounds, [Optional] nint pfnContinue, nuint dwContinue) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } return __object.Draw(dwDrawAspect, lindex, pvAspect, ptd, hdcTargetDev, hdcDraw, lprcBounds, lprcWBounds, pfnContinue, dwContinue); } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } public unsafe void Draw(winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, void* pvAspect, [Optional] winmdroot.System.Com.DVTARGETDEVICE* ptd, [Optional] winmdroot.Graphics.Gdi.HDC hdcTargetDev, winmdroot.Graphics.Gdi.HDC hdcDraw, [Optional] winmdroot.Foundation.RECTL* lprcBounds, [Optional] winmdroot.Foundation.RECTL* lprcWBounds, [Optional] nint pfnContinue, nuint dwContinue) { ((delegate *unmanaged [Stdcall]<IViewObject2*,winmdroot.System.Com.DVASPECT ,int ,void* ,winmdroot.System.Com.DVTARGETDEVICE* ,winmdroot.Graphics.Gdi.HDC ,winmdroot.Graphics.Gdi.HDC ,winmdroot.Foundation.RECTL* ,winmdroot.Foundation.RECTL* ,nint ,nuint ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IViewObject2*)Unsafe.AsPointer(ref this), dwDrawAspect, lindex, pvAspect, ptd, hdcTargetDev, hdcDraw, lprcBounds, lprcWBounds, pfnContinue, dwContinue).ThrowOnFailure(); } /// <inheritdoc cref="GetColorSet(winmdroot.System.Com.DVASPECT, int, void*, winmdroot.System.Com.DVTARGETDEVICE*, winmdroot.Graphics.Gdi.HDC, winmdroot.Graphics.Gdi.LOGPALETTE**)"/> [OverloadResolutionPriority(1)] internal unsafe void GetColorSet(winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, void* pvAspect, [Optional] winmdroot.System.Com.DVTARGETDEVICE* ptd, [Optional] winmdroot.Graphics.Gdi.HDC hicTargetDev, out winmdroot.Graphics.Gdi.LOGPALETTE* ppColorSet) { fixed (winmdroot.Graphics.Gdi.LOGPALETTE** ppColorSetLocal = &ppColorSet) { this.GetColorSet(dwDrawAspect, lindex, pvAspect, ptd, hicTargetDev, ppColorSetLocal); } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT GetColorSet(IViewObject2* pThis, winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, void* pvAspect, [Optional] winmdroot.System.Com.DVTARGETDEVICE* ptd, [Optional] winmdroot.Graphics.Gdi.HDC hicTargetDev, winmdroot.Graphics.Gdi.LOGPALETTE** ppColorSet) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } return __object.GetColorSet(dwDrawAspect, lindex, pvAspect, ptd, hicTargetDev, ppColorSet); } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } public unsafe void GetColorSet(winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, void* pvAspect, [Optional] winmdroot.System.Com.DVTARGETDEVICE* ptd, [Optional] winmdroot.Graphics.Gdi.HDC hicTargetDev, winmdroot.Graphics.Gdi.LOGPALETTE** ppColorSet) { ((delegate *unmanaged [Stdcall]<IViewObject2*,winmdroot.System.Com.DVASPECT ,int ,void* ,winmdroot.System.Com.DVTARGETDEVICE* ,winmdroot.Graphics.Gdi.HDC ,winmdroot.Graphics.Gdi.LOGPALETTE** ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((IViewObject2*)Unsafe.AsPointer(ref this), dwDrawAspect, lindex, pvAspect, ptd, hicTargetDev, ppColorSet).ThrowOnFailure(); } /// <inheritdoc cref="Freeze(winmdroot.System.Com.DVASPECT, int, void*, uint*)"/> [OverloadResolutionPriority(1)] internal unsafe void Freeze(winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, void* pvAspect, out uint pdwFreeze) { fixed (uint* pdwFreezeLocal = &pdwFreeze) { this.Freeze(dwDrawAspect, lindex, pvAspect, pdwFreezeLocal); } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT Freeze(IViewObject2* pThis, winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, void* pvAspect, uint* pdwFreeze) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } return __object.Freeze(dwDrawAspect, lindex, pvAspect, pdwFreeze); } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } public unsafe void Freeze(winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, void* pvAspect, uint* pdwFreeze) { ((delegate *unmanaged [Stdcall]<IViewObject2*,winmdroot.System.Com.DVASPECT ,int ,void* ,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((IViewObject2*)Unsafe.AsPointer(ref this), dwDrawAspect, lindex, pvAspect, pdwFreeze).ThrowOnFailure(); } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT Unfreeze(IViewObject2* pThis, uint dwFreeze) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } return __object.Unfreeze(dwFreeze); } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } public void Unfreeze(uint dwFreeze) { ((delegate *unmanaged [Stdcall]<IViewObject2*,uint ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((IViewObject2*)Unsafe.AsPointer(ref this), dwFreeze).ThrowOnFailure(); } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT SetAdvise(IViewObject2* pThis, winmdroot.System.Com.DVASPECT aspects, uint advf, winmdroot.System.Com.IAdviseSink* pAdvSink) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } return __object.SetAdvise(aspects, advf, pAdvSink); } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } public unsafe void SetAdvise(winmdroot.System.Com.DVASPECT aspects, uint advf, winmdroot.System.Com.IAdviseSink* pAdvSink) { ((delegate *unmanaged [Stdcall]<IViewObject2*,winmdroot.System.Com.DVASPECT ,uint ,winmdroot.System.Com.IAdviseSink* ,winmdroot.Foundation.HRESULT>)lpVtbl[7])((IViewObject2*)Unsafe.AsPointer(ref this), aspects, advf, pAdvSink).ThrowOnFailure(); } /// <inheritdoc cref="GetAdvise(uint*, uint*, winmdroot.System.Com.IAdviseSink**)"/> [OverloadResolutionPriority(1)] internal unsafe void GetAdvise(out uint pAspects, out uint pAdvf, winmdroot.System.Com.IAdviseSink** ppAdvSink) { fixed (uint* pAdvfLocal = &pAdvf) { fixed (uint* pAspectsLocal = &pAspects) { this.GetAdvise(pAspectsLocal, pAdvfLocal, ppAdvSink); } } } /// <inheritdoc cref="GetAdvise(uint*, uint*, winmdroot.System.Com.IAdviseSink**)"/> internal unsafe void GetAdvise(winmdroot.System.Com.IAdviseSink** ppAdvSink) { this.GetAdvise(default(uint* ), default(uint* ), ppAdvSink); } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT GetAdvise(IViewObject2* pThis, [Optional] uint* pAspects, [Optional] uint* pAdvf, winmdroot.System.Com.IAdviseSink** ppAdvSink) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } return __object.GetAdvise(pAspects, pAdvf, ppAdvSink); } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } public unsafe void GetAdvise([Optional] uint* pAspects, [Optional] uint* pAdvf, winmdroot.System.Com.IAdviseSink** ppAdvSink) { ((delegate *unmanaged [Stdcall]<IViewObject2*,uint* ,uint* ,winmdroot.System.Com.IAdviseSink** ,winmdroot.Foundation.HRESULT>)lpVtbl[8])((IViewObject2*)Unsafe.AsPointer(ref this), pAspects, pAdvf, ppAdvSink).ThrowOnFailure(); } /// <inheritdoc cref="GetExtent(winmdroot.System.Com.DVASPECT, int, winmdroot.System.Com.DVTARGETDEVICE*, winmdroot.Foundation.SIZE*)"/> [OverloadResolutionPriority(1)] internal unsafe void GetExtent(winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, winmdroot.System.Com.DVTARGETDEVICE* ptd, out winmdroot.Foundation.SIZE lpsizel) { fixed (winmdroot.Foundation.SIZE* lpsizelLocal = &lpsizel) { this.GetExtent(dwDrawAspect, lindex, ptd, lpsizelLocal); } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT GetExtent(IViewObject2* pThis, winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, winmdroot.System.Com.DVTARGETDEVICE* ptd, winmdroot.Foundation.SIZE* lpsizel) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } return __object.GetExtent(dwDrawAspect, lindex, ptd, lpsizel); } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } /// <summary>Retrieves the size that the specified view object will be drawn on the specified target device.</summary> /// <param name="dwDrawAspect">Requested view of the object whose size is of interest. Possible values are taken from the <a href="https://docs.microsoft.com/windows/desktop/api/wtypes/ne-wtypes-dvaspect">DVASPECT</a> and <a href="https://docs.microsoft.com/windows/desktop/api/ocidl/ne-ocidl-dvaspect2">DVASPECT2</a> enumerations. Note that newer objects and containers that support optimized drawing interfaces support the <b>DVASPECT2</b> enumeration values. Older objects and containers that do not support optimized drawing interfaces may not support <b>DVASPECT2</b>.</param> /// <param name="lindex">The portion of the object that is of interest. Currently, the only possible value is -1.</param> /// <param name="ptd">A pointer to the <a href="https://docs.microsoft.com/windows/desktop/api/objidl/ns-objidl-dvtargetdevice">DVTARGETDEVICE</a> structure defining the target device for which the object's size should be returned.</param> /// <param name="lpsizel">A pointer to where the object's size is returned.</param> /// <returns> /// <para>This method returns S_OK on success. Other possible return values include the following. </para> /// <para>This doc was truncated.</para> /// </returns> /// <remarks> /// <para>The OLE-provided implementation of <b>IViewObject2::GetExtent</b> searches the cache for the size of the view object. The <a href="https://docs.microsoft.com/windows/desktop/api/oleidl/nf-oleidl-ioleobject-getextent">IOleObject::GetExtent</a> method in the <a href="https://docs.microsoft.com/windows/desktop/api/oleidl/nn-oleidl-ioleobject">IOleObject</a> interface provides some of the same information as <b>IViewObject2::GetExtent</b>.</para> /// <para>This method must return the same size as DVASPECT_CONTENT for all the new aspects in <a href="https://docs.microsoft.com/windows/desktop/api/ocidl/ne-ocidl-dvaspect2">DVASPECT2</a>. <a href="https://docs.microsoft.com/windows/desktop/api/oleidl/nf-oleidl-ioleobject-getextent">IOleObject::GetExtent</a> must do the same thing. If one of the new aspects is requested in <i>dwAspect</i>, this method can either fail or return the same rectangle as for the DVASPECT_CONTENT aspect. <h3><a id="Notes_to_Callers"></a><a id="notes_to_callers"></a><a id="NOTES_TO_CALLERS"></a>Notes to Callers</h3> To prevent the object from being run if it isn't already running, you can call <b>IViewObject2::GetExtent</b> rather than <a href="https://docs.microsoft.com/windows/desktop/api/oleidl/nf-oleidl-ioleobject-getextent">IOleObject::GetExtent</a> to determine the size of the presentation to be drawn.</para> /// <para><see href="https://learn.microsoft.com/windows/win32/api/oleidl/nf-oleidl-iviewobject2-getextent#">Read more on learn.microsoft.com</see>.</para> /// </remarks> public unsafe void GetExtent(winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, winmdroot.System.Com.DVTARGETDEVICE* ptd, winmdroot.Foundation.SIZE* lpsizel) { ((delegate *unmanaged [Stdcall]<IViewObject2*,winmdroot.System.Com.DVASPECT ,int ,winmdroot.System.Com.DVTARGETDEVICE* ,winmdroot.Foundation.SIZE* ,winmdroot.Foundation.HRESULT>)lpVtbl[9])((IViewObject2*)Unsafe.AsPointer(ref this), dwDrawAspect, lindex, ptd, lpsizel).ThrowOnFailure(); } 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]<IViewObject2*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT> QueryInterface_1; internal delegate *unmanaged [Stdcall]<IViewObject2*,uint> AddRef_2; internal delegate *unmanaged [Stdcall]<IViewObject2*,uint> Release_3; internal delegate *unmanaged [Stdcall]<IViewObject2*,winmdroot.System.Com.DVASPECT ,int ,void* ,winmdroot.System.Com.DVTARGETDEVICE* ,winmdroot.Graphics.Gdi.HDC ,winmdroot.Graphics.Gdi.HDC ,winmdroot.Foundation.RECTL* ,winmdroot.Foundation.RECTL* ,nint ,nuint ,winmdroot.Foundation.HRESULT> Draw_4; internal delegate *unmanaged [Stdcall]<IViewObject2*,winmdroot.System.Com.DVASPECT ,int ,void* ,winmdroot.System.Com.DVTARGETDEVICE* ,winmdroot.Graphics.Gdi.HDC ,winmdroot.Graphics.Gdi.LOGPALETTE** ,winmdroot.Foundation.HRESULT> GetColorSet_5; internal delegate *unmanaged [Stdcall]<IViewObject2*,winmdroot.System.Com.DVASPECT ,int ,void* ,uint* ,winmdroot.Foundation.HRESULT> Freeze_6; internal delegate *unmanaged [Stdcall]<IViewObject2*,uint ,winmdroot.Foundation.HRESULT> Unfreeze_7; internal delegate *unmanaged [Stdcall]<IViewObject2*,winmdroot.System.Com.DVASPECT ,uint ,winmdroot.System.Com.IAdviseSink* ,winmdroot.Foundation.HRESULT> SetAdvise_8; internal delegate *unmanaged [Stdcall]<IViewObject2*,uint* ,uint* ,winmdroot.System.Com.IAdviseSink** ,winmdroot.Foundation.HRESULT> GetAdvise_9; internal delegate *unmanaged [Stdcall]<IViewObject2*,winmdroot.System.Com.DVASPECT ,int ,winmdroot.System.Com.DVTARGETDEVICE* ,winmdroot.Foundation.SIZE* ,winmdroot.Foundation.HRESULT> GetExtent_10; } public static void PopulateVTable(Vtbl* vtable) { vtable->Draw_4 = &Draw; vtable->GetColorSet_5 = &GetColorSet; vtable->Freeze_6 = &Freeze; vtable->Unfreeze_7 = &Unfreeze; vtable->SetAdvise_8 = &SetAdvise; vtable->GetAdvise_9 = &GetAdvise; vtable->GetExtent_10 = &GetExtent; } private void** lpVtbl; /// <summary>The IID guid for this interface.</summary> /// <value>{00000127-0000-0000-c000-000000000046}</value> internal static readonly Guid IID_Guid = new Guid(0x00000127, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46); static ref readonly Guid IComIID.Guid { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { ReadOnlySpan<byte> data = new byte[] { 0x27,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46 }; return ref Unsafe.As<byte,Guid>(ref MemoryMarshal.GetReference(data)); } } [Guid("00000127-0000-0000-C000-000000000046"),InterfaceType(ComInterfaceType.InterfaceIsIUnknown),ComImport()] [SupportedOSPlatform("windows5.0")] internal interface Interface :winmdroot.System.Ole.IViewObject.Interface { [PreserveSig()] unsafe new winmdroot.Foundation.HRESULT Draw(winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, void* pvAspect, [Optional] winmdroot.System.Com.DVTARGETDEVICE* ptd, [Optional] winmdroot.Graphics.Gdi.HDC hdcTargetDev, winmdroot.Graphics.Gdi.HDC hdcDraw, [Optional] winmdroot.Foundation.RECTL* lprcBounds, [Optional] winmdroot.Foundation.RECTL* lprcWBounds, [Optional] nint pfnContinue, nuint dwContinue); [PreserveSig()] unsafe new winmdroot.Foundation.HRESULT GetColorSet(winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, void* pvAspect, [Optional] winmdroot.System.Com.DVTARGETDEVICE* ptd, [Optional] winmdroot.Graphics.Gdi.HDC hicTargetDev, winmdroot.Graphics.Gdi.LOGPALETTE** ppColorSet); [PreserveSig()] unsafe new winmdroot.Foundation.HRESULT Freeze(winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, void* pvAspect, uint* pdwFreeze); [PreserveSig()] new winmdroot.Foundation.HRESULT Unfreeze(uint dwFreeze); [PreserveSig()] unsafe new winmdroot.Foundation.HRESULT SetAdvise(winmdroot.System.Com.DVASPECT aspects, uint advf, winmdroot.System.Com.IAdviseSink* pAdvSink); [PreserveSig()] unsafe new winmdroot.Foundation.HRESULT GetAdvise([Optional] uint* pAspects, [Optional] uint* pAdvf, winmdroot.System.Com.IAdviseSink** ppAdvSink); [PreserveSig()] unsafe winmdroot.Foundation.HRESULT GetExtent(winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, winmdroot.System.Com.DVTARGETDEVICE* ptd, winmdroot.Foundation.SIZE* lpsizel); } } } }