141 references to IFileOpenDialog
System.Windows.Forms (4)
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (3)
285IFileOpenDialog* dialog; 327private unsafe void SetDialogProperties(IFileOpenDialog* dialog) 402private unsafe void GetResult(IFileOpenDialog* dialog)
System\Windows\Forms\Dialogs\CommonDialogs\OpenFileDialog.cs (1)
145using var openDialog = ComScope<IFileOpenDialog>.QueryFrom(dialog);
System.Windows.Forms.Primitives (137)
_generated\132\Windows.Win32.IFileOpenDialog.g.cs (115)
27 :winmdroot.IVTable<IFileOpenDialog,IFileOpenDialog.Vtbl>,IComIID { 44 return ((delegate *unmanaged [Stdcall]<IFileOpenDialog*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT>)lpVtbl[0])((IFileOpenDialog*)Unsafe.AsPointer(ref this), riid, ppvObject); 49 return ((delegate *unmanaged [Stdcall]<IFileOpenDialog*,uint>)lpVtbl[1])((IFileOpenDialog*)Unsafe.AsPointer(ref this)); 54 return ((delegate *unmanaged [Stdcall]<IFileOpenDialog*,uint>)lpVtbl[2])((IFileOpenDialog*)Unsafe.AsPointer(ref this)); 60 private static winmdroot.Foundation.HRESULT Show(IFileOpenDialog* pThis, [Optional] winmdroot.Foundation.HWND hwndOwner) 79 return ((delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.Foundation.HWND ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IFileOpenDialog*)Unsafe.AsPointer(ref this), hwndOwner); 94 private static winmdroot.Foundation.HRESULT SetFileTypes(IFileOpenDialog* pThis, uint cFileTypes, winmdroot.UI.Shell.Common.COMDLG_FILTERSPEC* rgFilterSpec) 113 ((delegate *unmanaged [Stdcall]<IFileOpenDialog*,uint ,winmdroot.UI.Shell.Common.COMDLG_FILTERSPEC* ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((IFileOpenDialog*)Unsafe.AsPointer(ref this), cFileTypes, rgFilterSpec).ThrowOnFailure(); 119 private static winmdroot.Foundation.HRESULT SetFileTypeIndex(IFileOpenDialog* pThis, uint iFileType) 138 ((delegate *unmanaged [Stdcall]<IFileOpenDialog*,uint ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((IFileOpenDialog*)Unsafe.AsPointer(ref this), iFileType).ThrowOnFailure(); 154 private static winmdroot.Foundation.HRESULT GetFileTypeIndex(IFileOpenDialog* pThis, uint* piFileType) 173 ((delegate *unmanaged [Stdcall]<IFileOpenDialog*,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((IFileOpenDialog*)Unsafe.AsPointer(ref this), piFileType).ThrowOnFailure(); 189 private static winmdroot.Foundation.HRESULT Advise(IFileOpenDialog* pThis, winmdroot.UI.Shell.IFileDialogEvents* pfde, uint* pdwCookie) 208 ((delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.UI.Shell.IFileDialogEvents* ,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[7])((IFileOpenDialog*)Unsafe.AsPointer(ref this), pfde, pdwCookie).ThrowOnFailure(); 214 private static winmdroot.Foundation.HRESULT Unadvise(IFileOpenDialog* pThis, uint dwCookie) 233 ((delegate *unmanaged [Stdcall]<IFileOpenDialog*,uint ,winmdroot.Foundation.HRESULT>)lpVtbl[8])((IFileOpenDialog*)Unsafe.AsPointer(ref this), dwCookie).ThrowOnFailure(); 239 private static winmdroot.Foundation.HRESULT SetOptions(IFileOpenDialog* pThis, winmdroot.UI.Shell.FILEOPENDIALOGOPTIONS fos) 258 ((delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.UI.Shell.FILEOPENDIALOGOPTIONS ,winmdroot.Foundation.HRESULT>)lpVtbl[9])((IFileOpenDialog*)Unsafe.AsPointer(ref this), fos).ThrowOnFailure(); 274 private static winmdroot.Foundation.HRESULT GetOptions(IFileOpenDialog* pThis, winmdroot.UI.Shell.FILEOPENDIALOGOPTIONS* pfos) 293 ((delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.UI.Shell.FILEOPENDIALOGOPTIONS* ,winmdroot.Foundation.HRESULT>)lpVtbl[10])((IFileOpenDialog*)Unsafe.AsPointer(ref this), pfos).ThrowOnFailure(); 299 private static winmdroot.Foundation.HRESULT SetDefaultFolder(IFileOpenDialog* pThis, winmdroot.UI.Shell.IShellItem* psi) 318 ((delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.UI.Shell.IShellItem* ,winmdroot.Foundation.HRESULT>)lpVtbl[11])((IFileOpenDialog*)Unsafe.AsPointer(ref this), psi).ThrowOnFailure(); 324 private static winmdroot.Foundation.HRESULT SetFolder(IFileOpenDialog* pThis, winmdroot.UI.Shell.IShellItem* psi) 343 ((delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.UI.Shell.IShellItem* ,winmdroot.Foundation.HRESULT>)lpVtbl[12])((IFileOpenDialog*)Unsafe.AsPointer(ref this), psi).ThrowOnFailure(); 349 private static winmdroot.Foundation.HRESULT GetFolder(IFileOpenDialog* pThis, winmdroot.UI.Shell.IShellItem** ppsi) 368 ((delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.UI.Shell.IShellItem** ,winmdroot.Foundation.HRESULT>)lpVtbl[13])((IFileOpenDialog*)Unsafe.AsPointer(ref this), ppsi).ThrowOnFailure(); 374 private static winmdroot.Foundation.HRESULT GetCurrentSelection(IFileOpenDialog* pThis, winmdroot.UI.Shell.IShellItem** ppsi) 393 ((delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.UI.Shell.IShellItem** ,winmdroot.Foundation.HRESULT>)lpVtbl[14])((IFileOpenDialog*)Unsafe.AsPointer(ref this), ppsi).ThrowOnFailure(); 409 private static winmdroot.Foundation.HRESULT SetFileName(IFileOpenDialog* pThis, winmdroot.Foundation.PCWSTR pszName) 428 ((delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.Foundation.PCWSTR ,winmdroot.Foundation.HRESULT>)lpVtbl[15])((IFileOpenDialog*)Unsafe.AsPointer(ref this), pszName).ThrowOnFailure(); 444 private static winmdroot.Foundation.HRESULT GetFileName(IFileOpenDialog* pThis, winmdroot.Foundation.PWSTR* pszName) 463 ((delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.Foundation.PWSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[16])((IFileOpenDialog*)Unsafe.AsPointer(ref this), pszName).ThrowOnFailure(); 479 private static winmdroot.Foundation.HRESULT SetTitle(IFileOpenDialog* pThis, winmdroot.Foundation.PCWSTR pszTitle) 498 ((delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.Foundation.PCWSTR ,winmdroot.Foundation.HRESULT>)lpVtbl[17])((IFileOpenDialog*)Unsafe.AsPointer(ref this), pszTitle).ThrowOnFailure(); 514 private static winmdroot.Foundation.HRESULT SetOkButtonLabel(IFileOpenDialog* pThis, winmdroot.Foundation.PCWSTR pszText) 533 ((delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.Foundation.PCWSTR ,winmdroot.Foundation.HRESULT>)lpVtbl[18])((IFileOpenDialog*)Unsafe.AsPointer(ref this), pszText).ThrowOnFailure(); 549 private static winmdroot.Foundation.HRESULT SetFileNameLabel(IFileOpenDialog* pThis, winmdroot.Foundation.PCWSTR pszLabel) 568 ((delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.Foundation.PCWSTR ,winmdroot.Foundation.HRESULT>)lpVtbl[19])((IFileOpenDialog*)Unsafe.AsPointer(ref this), pszLabel).ThrowOnFailure(); 574 private static winmdroot.Foundation.HRESULT GetResult(IFileOpenDialog* pThis, winmdroot.UI.Shell.IShellItem** ppsi) 593 ((delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.UI.Shell.IShellItem** ,winmdroot.Foundation.HRESULT>)lpVtbl[20])((IFileOpenDialog*)Unsafe.AsPointer(ref this), ppsi).ThrowOnFailure(); 599 private static winmdroot.Foundation.HRESULT AddPlace(IFileOpenDialog* pThis, winmdroot.UI.Shell.IShellItem* psi, winmdroot.UI.Shell.FDAP fdap) 618 ((delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.UI.Shell.IShellItem* ,winmdroot.UI.Shell.FDAP ,winmdroot.Foundation.HRESULT>)lpVtbl[21])((IFileOpenDialog*)Unsafe.AsPointer(ref this), psi, fdap).ThrowOnFailure(); 634 private static winmdroot.Foundation.HRESULT SetDefaultExtension(IFileOpenDialog* pThis, winmdroot.Foundation.PCWSTR pszDefaultExtension) 653 ((delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.Foundation.PCWSTR ,winmdroot.Foundation.HRESULT>)lpVtbl[22])((IFileOpenDialog*)Unsafe.AsPointer(ref this), pszDefaultExtension).ThrowOnFailure(); 659 private static winmdroot.Foundation.HRESULT Close(IFileOpenDialog* pThis, winmdroot.Foundation.HRESULT hr) 678 ((delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.Foundation.HRESULT ,winmdroot.Foundation.HRESULT>)lpVtbl[23])((IFileOpenDialog*)Unsafe.AsPointer(ref this), hr).ThrowOnFailure(); 694 private static winmdroot.Foundation.HRESULT SetClientGuid(IFileOpenDialog* pThis, global::System.Guid* guid) 713 ((delegate *unmanaged [Stdcall]<IFileOpenDialog*,global::System.Guid* ,winmdroot.Foundation.HRESULT>)lpVtbl[24])((IFileOpenDialog*)Unsafe.AsPointer(ref this), guid).ThrowOnFailure(); 719 private static winmdroot.Foundation.HRESULT ClearClientData(IFileOpenDialog* pThis) 738 ((delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.Foundation.HRESULT>)lpVtbl[25])((IFileOpenDialog*)Unsafe.AsPointer(ref this)).ThrowOnFailure(); 744 private static winmdroot.Foundation.HRESULT SetFilter(IFileOpenDialog* pThis, winmdroot.UI.Shell.IShellItemFilter* pFilter) 763 ((delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.UI.Shell.IShellItemFilter* ,winmdroot.Foundation.HRESULT>)lpVtbl[26])((IFileOpenDialog*)Unsafe.AsPointer(ref this), pFilter).ThrowOnFailure(); 769 private static winmdroot.Foundation.HRESULT GetResults(IFileOpenDialog* pThis, winmdroot.UI.Shell.IShellItemArray** ppenum) 801 return ((delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.UI.Shell.IShellItemArray** ,winmdroot.Foundation.HRESULT>)lpVtbl[27])((IFileOpenDialog*)Unsafe.AsPointer(ref this), ppenum); 807 private static winmdroot.Foundation.HRESULT GetSelectedItems(IFileOpenDialog* pThis, winmdroot.UI.Shell.IShellItemArray** ppsai) 835 ((delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.UI.Shell.IShellItemArray** ,winmdroot.Foundation.HRESULT>)lpVtbl[28])((IFileOpenDialog*)Unsafe.AsPointer(ref this), ppsai).ThrowOnFailure(); 861 internal delegate *unmanaged [Stdcall]<IFileOpenDialog*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT> QueryInterface_1; 863 internal delegate *unmanaged [Stdcall]<IFileOpenDialog*,uint> AddRef_2; 865 internal delegate *unmanaged [Stdcall]<IFileOpenDialog*,uint> Release_3; 867 internal delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.Foundation.HWND ,winmdroot.Foundation.HRESULT> Show_4; 869 internal delegate *unmanaged [Stdcall]<IFileOpenDialog*,uint ,winmdroot.UI.Shell.Common.COMDLG_FILTERSPEC* ,winmdroot.Foundation.HRESULT> SetFileTypes_5; 871 internal delegate *unmanaged [Stdcall]<IFileOpenDialog*,uint ,winmdroot.Foundation.HRESULT> SetFileTypeIndex_6; 873 internal delegate *unmanaged [Stdcall]<IFileOpenDialog*,uint* ,winmdroot.Foundation.HRESULT> GetFileTypeIndex_7; 875 internal delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.UI.Shell.IFileDialogEvents* ,uint* ,winmdroot.Foundation.HRESULT> Advise_8; 877 internal delegate *unmanaged [Stdcall]<IFileOpenDialog*,uint ,winmdroot.Foundation.HRESULT> Unadvise_9; 879 internal delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.UI.Shell.FILEOPENDIALOGOPTIONS ,winmdroot.Foundation.HRESULT> SetOptions_10; 881 internal delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.UI.Shell.FILEOPENDIALOGOPTIONS* ,winmdroot.Foundation.HRESULT> GetOptions_11; 883 internal delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.UI.Shell.IShellItem* ,winmdroot.Foundation.HRESULT> SetDefaultFolder_12; 885 internal delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.UI.Shell.IShellItem* ,winmdroot.Foundation.HRESULT> SetFolder_13; 887 internal delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.UI.Shell.IShellItem** ,winmdroot.Foundation.HRESULT> GetFolder_14; 889 internal delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.UI.Shell.IShellItem** ,winmdroot.Foundation.HRESULT> GetCurrentSelection_15; 891 internal delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.Foundation.PCWSTR ,winmdroot.Foundation.HRESULT> SetFileName_16; 893 internal delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.Foundation.PWSTR* ,winmdroot.Foundation.HRESULT> GetFileName_17; 895 internal delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.Foundation.PCWSTR ,winmdroot.Foundation.HRESULT> SetTitle_18; 897 internal delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.Foundation.PCWSTR ,winmdroot.Foundation.HRESULT> SetOkButtonLabel_19; 899 internal delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.Foundation.PCWSTR ,winmdroot.Foundation.HRESULT> SetFileNameLabel_20; 901 internal delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.UI.Shell.IShellItem** ,winmdroot.Foundation.HRESULT> GetResult_21; 903 internal delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.UI.Shell.IShellItem* ,winmdroot.UI.Shell.FDAP ,winmdroot.Foundation.HRESULT> AddPlace_22; 905 internal delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.Foundation.PCWSTR ,winmdroot.Foundation.HRESULT> SetDefaultExtension_23; 907 internal delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.Foundation.HRESULT ,winmdroot.Foundation.HRESULT> Close_24; 909 internal delegate *unmanaged [Stdcall]<IFileOpenDialog*,global::System.Guid* ,winmdroot.Foundation.HRESULT> SetClientGuid_25; 911 internal delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.Foundation.HRESULT> ClearClientData_26; 913 internal delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.UI.Shell.IShellItemFilter* ,winmdroot.Foundation.HRESULT> SetFilter_27; 915 internal delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.UI.Shell.IShellItemArray** ,winmdroot.Foundation.HRESULT> GetResults_28; 917 internal delegate *unmanaged [Stdcall]<IFileOpenDialog*,winmdroot.UI.Shell.IShellItemArray** ,winmdroot.Foundation.HRESULT> GetSelectedItems_29;
_generated\602\Windows.Win32.UI_Shell_IFileOpenDialog_Extensions.g.cs (22)
23 /// <inheritdoc cref="winmdroot.UI.Shell.IFileOpenDialog.Interface.SetFileTypes(uint, winmdroot.UI.Shell.Common.COMDLG_FILTERSPEC*)"/> 25 internal static unsafe winmdroot.Foundation.HRESULT SetFileTypes(this winmdroot.UI.Shell.IFileOpenDialog.Interface @this, ReadOnlySpan<winmdroot.UI.Shell.Common.COMDLG_FILTERSPEC> rgFilterSpec) 34 /// <inheritdoc cref="winmdroot.UI.Shell.IFileOpenDialog.Interface.GetFileTypeIndex(uint*)"/> 35 internal static unsafe winmdroot.Foundation.HRESULT GetFileTypeIndex(this winmdroot.UI.Shell.IFileOpenDialog.Interface @this, out uint piFileType) 44 /// <inheritdoc cref="winmdroot.UI.Shell.IFileOpenDialog.Interface.Advise(winmdroot.UI.Shell.IFileDialogEvents*, uint*)"/> 45 internal static unsafe winmdroot.Foundation.HRESULT Advise(this winmdroot.UI.Shell.IFileOpenDialog.Interface @this, winmdroot.UI.Shell.IFileDialogEvents* pfde, out uint pdwCookie) 54 /// <inheritdoc cref="winmdroot.UI.Shell.IFileOpenDialog.Interface.GetOptions(winmdroot.UI.Shell.FILEOPENDIALOGOPTIONS*)"/> 55 internal static unsafe winmdroot.Foundation.HRESULT GetOptions(this winmdroot.UI.Shell.IFileOpenDialog.Interface @this, out winmdroot.UI.Shell.FILEOPENDIALOGOPTIONS pfos) 64 /// <inheritdoc cref="winmdroot.UI.Shell.IFileOpenDialog.Interface.SetFileName(winmdroot.Foundation.PCWSTR)"/> 65 internal static unsafe winmdroot.Foundation.HRESULT SetFileName(this winmdroot.UI.Shell.IFileOpenDialog.Interface @this, string pszName) 74 /// <inheritdoc cref="winmdroot.UI.Shell.IFileOpenDialog.Interface.GetFileName(winmdroot.Foundation.PWSTR*)"/> 75 internal static unsafe winmdroot.Foundation.HRESULT GetFileName(this winmdroot.UI.Shell.IFileOpenDialog.Interface @this, out winmdroot.Foundation.PWSTR pszName) 84 /// <inheritdoc cref="winmdroot.UI.Shell.IFileOpenDialog.Interface.SetTitle(winmdroot.Foundation.PCWSTR)"/> 85 internal static unsafe winmdroot.Foundation.HRESULT SetTitle(this winmdroot.UI.Shell.IFileOpenDialog.Interface @this, string pszTitle) 94 /// <inheritdoc cref="winmdroot.UI.Shell.IFileOpenDialog.Interface.SetOkButtonLabel(winmdroot.Foundation.PCWSTR)"/> 95 internal static unsafe winmdroot.Foundation.HRESULT SetOkButtonLabel(this winmdroot.UI.Shell.IFileOpenDialog.Interface @this, string pszText) 104 /// <inheritdoc cref="winmdroot.UI.Shell.IFileOpenDialog.Interface.SetFileNameLabel(winmdroot.Foundation.PCWSTR)"/> 105 internal static unsafe winmdroot.Foundation.HRESULT SetFileNameLabel(this winmdroot.UI.Shell.IFileOpenDialog.Interface @this, string pszLabel) 114 /// <inheritdoc cref="winmdroot.UI.Shell.IFileOpenDialog.Interface.SetDefaultExtension(winmdroot.Foundation.PCWSTR)"/> 115 internal static unsafe winmdroot.Foundation.HRESULT SetDefaultExtension(this winmdroot.UI.Shell.IFileOpenDialog.Interface @this, string pszDefaultExtension) 124 /// <inheritdoc cref="winmdroot.UI.Shell.IFileOpenDialog.Interface.SetClientGuid(global::System.Guid*)"/> 125 internal static unsafe winmdroot.Foundation.HRESULT SetClientGuid(this winmdroot.UI.Shell.IFileOpenDialog.Interface @this, in global::System.Guid guid)