File: Windows.Win32.System_Ole_IViewObject2_Extensions.g.cs
Project: src\src\System.Windows.Forms.Primitives\src\System.Windows.Forms.Primitives.csproj (System.Windows.Forms.Primitives)
// ------------------------------------------------------------------------------
// <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_Ole_IViewObject2_Extensions
	{
		/// <inheritdoc cref="winmdroot.System.Ole.IViewObject2.Interface.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)"/>
		internal static unsafe winmdroot.Foundation.HRESULT Draw(this winmdroot.System.Ole.IViewObject2.Interface @this, winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, void* pvAspect, winmdroot.System.Com.DVTARGETDEVICE* ptd, winmdroot.Graphics.Gdi.HDC hdcTargetDev, winmdroot.Graphics.Gdi.HDC hdcDraw, winmdroot.Foundation.RECTL? lprcBounds, winmdroot.Foundation.RECTL? lprcWBounds, nint pfnContinue, nuint dwContinue)
		{
			winmdroot.Foundation.RECTL lprcBoundsLocal = lprcBounds ?? default(winmdroot.Foundation.RECTL);
			winmdroot.Foundation.RECTL lprcWBoundsLocal = lprcWBounds ?? default(winmdroot.Foundation.RECTL);
			winmdroot.Foundation.HRESULT __result = @this.Draw(dwDrawAspect, lindex, pvAspect, ptd, hdcTargetDev, hdcDraw, lprcBounds.HasValue ? &lprcBoundsLocal : null, lprcWBounds.HasValue ? &lprcWBoundsLocal : null, pfnContinue, dwContinue);
			return __result;
		}

		/// <inheritdoc cref="winmdroot.System.Ole.IViewObject2.Interface.GetColorSet(winmdroot.System.Com.DVASPECT, int, void*, winmdroot.System.Com.DVTARGETDEVICE*, winmdroot.Graphics.Gdi.HDC, winmdroot.Graphics.Gdi.LOGPALETTE**)"/>
		internal static unsafe winmdroot.Foundation.HRESULT GetColorSet(this winmdroot.System.Ole.IViewObject2.Interface @this, winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, void* pvAspect, winmdroot.System.Com.DVTARGETDEVICE* ptd, winmdroot.Graphics.Gdi.HDC hicTargetDev, out winmdroot.Graphics.Gdi.LOGPALETTE* ppColorSet)
		{
			fixed (winmdroot.Graphics.Gdi.LOGPALETTE** ppColorSetLocal = &ppColorSet)
			{
				winmdroot.Foundation.HRESULT __result = @this.GetColorSet(dwDrawAspect, lindex, pvAspect, ptd, hicTargetDev, ppColorSetLocal);
				return __result;
			}
		}

		/// <inheritdoc cref="winmdroot.System.Ole.IViewObject2.Interface.Freeze(winmdroot.System.Com.DVASPECT, int, void*, uint*)"/>
		internal static unsafe winmdroot.Foundation.HRESULT Freeze(this winmdroot.System.Ole.IViewObject2.Interface @this, winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, void* pvAspect, out uint pdwFreeze)
		{
			fixed (uint* pdwFreezeLocal = &pdwFreeze)
			{
				winmdroot.Foundation.HRESULT __result = @this.Freeze(dwDrawAspect, lindex, pvAspect, pdwFreezeLocal);
				return __result;
			}
		}

		/// <inheritdoc cref="winmdroot.System.Ole.IViewObject2.Interface.GetExtent(winmdroot.System.Com.DVASPECT, int, winmdroot.System.Com.DVTARGETDEVICE*, winmdroot.Foundation.SIZE*)"/>
		internal static unsafe winmdroot.Foundation.HRESULT GetExtent(this winmdroot.System.Ole.IViewObject2.Interface @this, winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, winmdroot.System.Com.DVTARGETDEVICE* ptd, out winmdroot.Foundation.SIZE lpsizel)
		{
			fixed (winmdroot.Foundation.SIZE* lpsizelLocal = &lpsizel)
			{
				winmdroot.Foundation.HRESULT __result = @this.GetExtent(dwDrawAspect, lindex, ptd, lpsizelLocal);
				return __result;
			}
		}
	}
}