File: Windows.Win32.UI_Shell_IFileOpenDialog_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 UI_Shell_IFileOpenDialog_Extensions
	{
		/// <inheritdoc cref="winmdroot.UI.Shell.IFileOpenDialog.Interface.SetFileTypes(uint, winmdroot.UI.Shell.Common.COMDLG_FILTERSPEC*)"/>
		internal static unsafe winmdroot.Foundation.HRESULT SetFileTypes(this winmdroot.UI.Shell.IFileOpenDialog.Interface @this, ReadOnlySpan<winmdroot.UI.Shell.Common.COMDLG_FILTERSPEC> rgFilterSpec)
		{
			fixed (winmdroot.UI.Shell.Common.COMDLG_FILTERSPEC* rgFilterSpecLocal = rgFilterSpec)
			{
				winmdroot.Foundation.HRESULT __result = @this.SetFileTypes((uint )rgFilterSpec.Length, rgFilterSpecLocal);
				return __result;
			}
		}

		/// <inheritdoc cref="winmdroot.UI.Shell.IFileOpenDialog.Interface.GetFileTypeIndex(uint*)"/>
		internal static unsafe winmdroot.Foundation.HRESULT GetFileTypeIndex(this winmdroot.UI.Shell.IFileOpenDialog.Interface @this, out uint piFileType)
		{
			fixed (uint* piFileTypeLocal = &piFileType)
			{
				winmdroot.Foundation.HRESULT __result = @this.GetFileTypeIndex(piFileTypeLocal);
				return __result;
			}
		}

		/// <inheritdoc cref="winmdroot.UI.Shell.IFileOpenDialog.Interface.Advise(winmdroot.UI.Shell.IFileDialogEvents*, uint*)"/>
		internal static unsafe winmdroot.Foundation.HRESULT Advise(this winmdroot.UI.Shell.IFileOpenDialog.Interface @this, winmdroot.UI.Shell.IFileDialogEvents* pfde, out uint pdwCookie)
		{
			fixed (uint* pdwCookieLocal = &pdwCookie)
			{
				winmdroot.Foundation.HRESULT __result = @this.Advise(pfde, pdwCookieLocal);
				return __result;
			}
		}

		/// <inheritdoc cref="winmdroot.UI.Shell.IFileOpenDialog.Interface.GetOptions(winmdroot.UI.Shell.FILEOPENDIALOGOPTIONS*)"/>
		internal static unsafe winmdroot.Foundation.HRESULT GetOptions(this winmdroot.UI.Shell.IFileOpenDialog.Interface @this, out winmdroot.UI.Shell.FILEOPENDIALOGOPTIONS pfos)
		{
			fixed (winmdroot.UI.Shell.FILEOPENDIALOGOPTIONS* pfosLocal = &pfos)
			{
				winmdroot.Foundation.HRESULT __result = @this.GetOptions(pfosLocal);
				return __result;
			}
		}

		/// <inheritdoc cref="winmdroot.UI.Shell.IFileOpenDialog.Interface.SetFileName(winmdroot.Foundation.PCWSTR)"/>
		internal static unsafe winmdroot.Foundation.HRESULT SetFileName(this winmdroot.UI.Shell.IFileOpenDialog.Interface @this, string pszName)
		{
			fixed (char* pszNameLocal = pszName)
			{
				winmdroot.Foundation.HRESULT __result = @this.SetFileName(pszNameLocal);
				return __result;
			}
		}

		/// <inheritdoc cref="winmdroot.UI.Shell.IFileOpenDialog.Interface.GetFileName(winmdroot.Foundation.PWSTR*)"/>
		internal static unsafe winmdroot.Foundation.HRESULT GetFileName(this winmdroot.UI.Shell.IFileOpenDialog.Interface @this, out winmdroot.Foundation.PWSTR pszName)
		{
			fixed (winmdroot.Foundation.PWSTR* pszNameLocal = &pszName)
			{
				winmdroot.Foundation.HRESULT __result = @this.GetFileName(pszNameLocal);
				return __result;
			}
		}

		/// <inheritdoc cref="winmdroot.UI.Shell.IFileOpenDialog.Interface.SetTitle(winmdroot.Foundation.PCWSTR)"/>
		internal static unsafe winmdroot.Foundation.HRESULT SetTitle(this winmdroot.UI.Shell.IFileOpenDialog.Interface @this, string pszTitle)
		{
			fixed (char* pszTitleLocal = pszTitle)
			{
				winmdroot.Foundation.HRESULT __result = @this.SetTitle(pszTitleLocal);
				return __result;
			}
		}

		/// <inheritdoc cref="winmdroot.UI.Shell.IFileOpenDialog.Interface.SetOkButtonLabel(winmdroot.Foundation.PCWSTR)"/>
		internal static unsafe winmdroot.Foundation.HRESULT SetOkButtonLabel(this winmdroot.UI.Shell.IFileOpenDialog.Interface @this, string pszText)
		{
			fixed (char* pszTextLocal = pszText)
			{
				winmdroot.Foundation.HRESULT __result = @this.SetOkButtonLabel(pszTextLocal);
				return __result;
			}
		}

		/// <inheritdoc cref="winmdroot.UI.Shell.IFileOpenDialog.Interface.SetFileNameLabel(winmdroot.Foundation.PCWSTR)"/>
		internal static unsafe winmdroot.Foundation.HRESULT SetFileNameLabel(this winmdroot.UI.Shell.IFileOpenDialog.Interface @this, string pszLabel)
		{
			fixed (char* pszLabelLocal = pszLabel)
			{
				winmdroot.Foundation.HRESULT __result = @this.SetFileNameLabel(pszLabelLocal);
				return __result;
			}
		}

		/// <inheritdoc cref="winmdroot.UI.Shell.IFileOpenDialog.Interface.SetDefaultExtension(winmdroot.Foundation.PCWSTR)"/>
		internal static unsafe winmdroot.Foundation.HRESULT SetDefaultExtension(this winmdroot.UI.Shell.IFileOpenDialog.Interface @this, string pszDefaultExtension)
		{
			fixed (char* pszDefaultExtensionLocal = pszDefaultExtension)
			{
				winmdroot.Foundation.HRESULT __result = @this.SetDefaultExtension(pszDefaultExtensionLocal);
				return __result;
			}
		}

		/// <inheritdoc cref="winmdroot.UI.Shell.IFileOpenDialog.Interface.SetClientGuid(global::System.Guid*)"/>
		internal static unsafe winmdroot.Foundation.HRESULT SetClientGuid(this winmdroot.UI.Shell.IFileOpenDialog.Interface @this, in global::System.Guid guid)
		{
			fixed (global::System.Guid* guidLocal = &guid)
			{
				winmdroot.Foundation.HRESULT __result = @this.SetClientGuid(guidLocal);
				return __result;
			}
		}
	}
}