File: Windows.Win32.System_Com_IBindStatusCallback_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_Com_IBindStatusCallback_Extensions
	{
		/// <inheritdoc cref="winmdroot.System.Com.IBindStatusCallback.Interface.GetPriority(int*)"/>
		internal static unsafe winmdroot.Foundation.HRESULT GetPriority(this winmdroot.System.Com.IBindStatusCallback.Interface @this, out int pnPriority)
		{
			fixed (int* pnPriorityLocal = &pnPriority)
			{
				winmdroot.Foundation.HRESULT __result = @this.GetPriority(pnPriorityLocal);
				return __result;
			}
		}

		/// <inheritdoc cref="winmdroot.System.Com.IBindStatusCallback.Interface.OnProgress(uint, uint, uint, winmdroot.Foundation.PCWSTR)"/>
		internal static unsafe winmdroot.Foundation.HRESULT OnProgress(this winmdroot.System.Com.IBindStatusCallback.Interface @this, uint ulProgress, uint ulProgressMax, uint ulStatusCode, string szStatusText)
		{
			fixed (char* szStatusTextLocal = szStatusText)
			{
				winmdroot.Foundation.HRESULT __result = @this.OnProgress(ulProgress, ulProgressMax, ulStatusCode, szStatusTextLocal);
				return __result;
			}
		}

		/// <inheritdoc cref="winmdroot.System.Com.IBindStatusCallback.Interface.OnStopBinding(winmdroot.Foundation.HRESULT, winmdroot.Foundation.PCWSTR)"/>
		internal static unsafe winmdroot.Foundation.HRESULT OnStopBinding(this winmdroot.System.Com.IBindStatusCallback.Interface @this, winmdroot.Foundation.HRESULT hresult, string szError)
		{
			fixed (char* szErrorLocal = szError)
			{
				winmdroot.Foundation.HRESULT __result = @this.OnStopBinding(hresult, szErrorLocal);
				return __result;
			}
		}

		/// <inheritdoc cref="winmdroot.System.Com.IBindStatusCallback.Interface.GetBindInfo(uint*, winmdroot.System.Com.BINDINFO*)"/>
		internal static unsafe winmdroot.Foundation.HRESULT GetBindInfo(this winmdroot.System.Com.IBindStatusCallback.Interface @this, out uint grfBINDF, ref winmdroot.System.Com.BINDINFO pbindinfo)
		{
			fixed (winmdroot.System.Com.BINDINFO* pbindinfoLocal = &pbindinfo)
			{
				fixed (uint* grfBINDFLocal = &grfBINDF)
				{
					winmdroot.Foundation.HRESULT __result = @this.GetBindInfo(grfBINDFLocal, pbindinfoLocal);
					return __result;
				}
			}
		}

		/// <inheritdoc cref="winmdroot.System.Com.IBindStatusCallback.Interface.OnDataAvailable(uint, uint, winmdroot.System.Com.FORMATETC*, winmdroot.System.Com.STGMEDIUM*)"/>
		internal static unsafe winmdroot.Foundation.HRESULT OnDataAvailable(this winmdroot.System.Com.IBindStatusCallback.Interface @this, uint grfBSCF, uint dwSize, in winmdroot.System.Com.FORMATETC pformatetc, in winmdroot.System.Com.STGMEDIUM pstgmed)
		{
			fixed (winmdroot.System.Com.STGMEDIUM* pstgmedLocal = &pstgmed)
			{
				fixed (winmdroot.System.Com.FORMATETC* pformatetcLocal = &pformatetc)
				{
					winmdroot.Foundation.HRESULT __result = @this.OnDataAvailable(grfBSCF, dwSize, pformatetcLocal, pstgmedLocal);
					return __result;
				}
			}
		}

		/// <inheritdoc cref="winmdroot.System.Com.IBindStatusCallback.Interface.OnObjectAvailable(global::System.Guid*, winmdroot.System.Com.IUnknown*)"/>
		internal static unsafe winmdroot.Foundation.HRESULT OnObjectAvailable(this winmdroot.System.Com.IBindStatusCallback.Interface @this, in global::System.Guid riid, winmdroot.System.Com.IUnknown* punk)
		{
			fixed (global::System.Guid* riidLocal = &riid)
			{
				winmdroot.Foundation.HRESULT __result = @this.OnObjectAvailable(riidLocal, punk);
				return __result;
			}
		}
	}
}