141 references to IFileOpenDialog
System.Windows.Forms (4)
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (3)
285
IFileOpenDialog
* dialog;
327
private unsafe void SetDialogProperties(
IFileOpenDialog
* dialog)
402
private unsafe void GetResult(
IFileOpenDialog
* dialog)
System\Windows\Forms\Dialogs\CommonDialogs\OpenFileDialog.cs (1)
145
using var openDialog = ComScope<
IFileOpenDialog
>.QueryFrom(dialog);
System.Windows.Forms.Primitives (137)
Windows.Win32.IFileOpenDialog.g.cs (115)
26
:IVTable<
IFileOpenDialog
,
IFileOpenDialog
.Vtbl>,IComIID {
42
return ((delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT>)lpVtbl[0])((
IFileOpenDialog
*)Unsafe.AsPointer(ref this), riid, ppvObject);
47
return ((delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,uint>)lpVtbl[1])((
IFileOpenDialog
*)Unsafe.AsPointer(ref this));
52
return ((delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,uint>)lpVtbl[2])((
IFileOpenDialog
*)Unsafe.AsPointer(ref this));
58
private static winmdroot.Foundation.HRESULT Show(
IFileOpenDialog
* pThis, winmdroot.Foundation.HWND hwndOwner)
77
return ((delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.Foundation.HWND ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((
IFileOpenDialog
*)Unsafe.AsPointer(ref this), hwndOwner);
92
private static winmdroot.Foundation.HRESULT SetFileTypes(
IFileOpenDialog
* pThis, uint cFileTypes, winmdroot.UI.Shell.Common.COMDLG_FILTERSPEC* rgFilterSpec)
111
((delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,uint ,winmdroot.UI.Shell.Common.COMDLG_FILTERSPEC* ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((
IFileOpenDialog
*)Unsafe.AsPointer(ref this), cFileTypes, rgFilterSpec).ThrowOnFailure();
117
private static winmdroot.Foundation.HRESULT SetFileTypeIndex(
IFileOpenDialog
* pThis, uint iFileType)
136
((delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,uint ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((
IFileOpenDialog
*)Unsafe.AsPointer(ref this), iFileType).ThrowOnFailure();
151
private static winmdroot.Foundation.HRESULT GetFileTypeIndex(
IFileOpenDialog
* pThis, uint* piFileType)
170
((delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((
IFileOpenDialog
*)Unsafe.AsPointer(ref this), piFileType).ThrowOnFailure();
185
private static winmdroot.Foundation.HRESULT Advise(
IFileOpenDialog
* pThis, winmdroot.UI.Shell.IFileDialogEvents* pfde, uint* pdwCookie)
204
((delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.UI.Shell.IFileDialogEvents* ,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[7])((
IFileOpenDialog
*)Unsafe.AsPointer(ref this), pfde, pdwCookie).ThrowOnFailure();
210
private static winmdroot.Foundation.HRESULT Unadvise(
IFileOpenDialog
* pThis, uint dwCookie)
229
((delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,uint ,winmdroot.Foundation.HRESULT>)lpVtbl[8])((
IFileOpenDialog
*)Unsafe.AsPointer(ref this), dwCookie).ThrowOnFailure();
235
private static winmdroot.Foundation.HRESULT SetOptions(
IFileOpenDialog
* pThis, winmdroot.UI.Shell.FILEOPENDIALOGOPTIONS fos)
254
((delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.UI.Shell.FILEOPENDIALOGOPTIONS ,winmdroot.Foundation.HRESULT>)lpVtbl[9])((
IFileOpenDialog
*)Unsafe.AsPointer(ref this), fos).ThrowOnFailure();
269
private static winmdroot.Foundation.HRESULT GetOptions(
IFileOpenDialog
* pThis, winmdroot.UI.Shell.FILEOPENDIALOGOPTIONS* pfos)
288
((delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.UI.Shell.FILEOPENDIALOGOPTIONS* ,winmdroot.Foundation.HRESULT>)lpVtbl[10])((
IFileOpenDialog
*)Unsafe.AsPointer(ref this), pfos).ThrowOnFailure();
294
private static winmdroot.Foundation.HRESULT SetDefaultFolder(
IFileOpenDialog
* pThis, winmdroot.UI.Shell.IShellItem* psi)
313
((delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.UI.Shell.IShellItem* ,winmdroot.Foundation.HRESULT>)lpVtbl[11])((
IFileOpenDialog
*)Unsafe.AsPointer(ref this), psi).ThrowOnFailure();
319
private static winmdroot.Foundation.HRESULT SetFolder(
IFileOpenDialog
* pThis, winmdroot.UI.Shell.IShellItem* psi)
338
((delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.UI.Shell.IShellItem* ,winmdroot.Foundation.HRESULT>)lpVtbl[12])((
IFileOpenDialog
*)Unsafe.AsPointer(ref this), psi).ThrowOnFailure();
344
private static winmdroot.Foundation.HRESULT GetFolder(
IFileOpenDialog
* pThis, winmdroot.UI.Shell.IShellItem** ppsi)
363
((delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.UI.Shell.IShellItem** ,winmdroot.Foundation.HRESULT>)lpVtbl[13])((
IFileOpenDialog
*)Unsafe.AsPointer(ref this), ppsi).ThrowOnFailure();
369
private static winmdroot.Foundation.HRESULT GetCurrentSelection(
IFileOpenDialog
* pThis, winmdroot.UI.Shell.IShellItem** ppsi)
388
((delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.UI.Shell.IShellItem** ,winmdroot.Foundation.HRESULT>)lpVtbl[14])((
IFileOpenDialog
*)Unsafe.AsPointer(ref this), ppsi).ThrowOnFailure();
403
private static winmdroot.Foundation.HRESULT SetFileName(
IFileOpenDialog
* pThis, winmdroot.Foundation.PCWSTR pszName)
422
((delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.Foundation.PCWSTR ,winmdroot.Foundation.HRESULT>)lpVtbl[15])((
IFileOpenDialog
*)Unsafe.AsPointer(ref this), pszName).ThrowOnFailure();
437
private static winmdroot.Foundation.HRESULT GetFileName(
IFileOpenDialog
* pThis, winmdroot.Foundation.PWSTR* pszName)
456
((delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.Foundation.PWSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[16])((
IFileOpenDialog
*)Unsafe.AsPointer(ref this), pszName).ThrowOnFailure();
471
private static winmdroot.Foundation.HRESULT SetTitle(
IFileOpenDialog
* pThis, winmdroot.Foundation.PCWSTR pszTitle)
490
((delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.Foundation.PCWSTR ,winmdroot.Foundation.HRESULT>)lpVtbl[17])((
IFileOpenDialog
*)Unsafe.AsPointer(ref this), pszTitle).ThrowOnFailure();
505
private static winmdroot.Foundation.HRESULT SetOkButtonLabel(
IFileOpenDialog
* pThis, winmdroot.Foundation.PCWSTR pszText)
524
((delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.Foundation.PCWSTR ,winmdroot.Foundation.HRESULT>)lpVtbl[18])((
IFileOpenDialog
*)Unsafe.AsPointer(ref this), pszText).ThrowOnFailure();
539
private static winmdroot.Foundation.HRESULT SetFileNameLabel(
IFileOpenDialog
* pThis, winmdroot.Foundation.PCWSTR pszLabel)
558
((delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.Foundation.PCWSTR ,winmdroot.Foundation.HRESULT>)lpVtbl[19])((
IFileOpenDialog
*)Unsafe.AsPointer(ref this), pszLabel).ThrowOnFailure();
564
private static winmdroot.Foundation.HRESULT GetResult(
IFileOpenDialog
* pThis, winmdroot.UI.Shell.IShellItem** ppsi)
583
((delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.UI.Shell.IShellItem** ,winmdroot.Foundation.HRESULT>)lpVtbl[20])((
IFileOpenDialog
*)Unsafe.AsPointer(ref this), ppsi).ThrowOnFailure();
589
private static winmdroot.Foundation.HRESULT AddPlace(
IFileOpenDialog
* pThis, winmdroot.UI.Shell.IShellItem* psi, winmdroot.UI.Shell.FDAP fdap)
608
((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();
623
private static winmdroot.Foundation.HRESULT SetDefaultExtension(
IFileOpenDialog
* pThis, winmdroot.Foundation.PCWSTR pszDefaultExtension)
642
((delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.Foundation.PCWSTR ,winmdroot.Foundation.HRESULT>)lpVtbl[22])((
IFileOpenDialog
*)Unsafe.AsPointer(ref this), pszDefaultExtension).ThrowOnFailure();
648
private static winmdroot.Foundation.HRESULT Close(
IFileOpenDialog
* pThis, winmdroot.Foundation.HRESULT hr)
667
((delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.Foundation.HRESULT ,winmdroot.Foundation.HRESULT>)lpVtbl[23])((
IFileOpenDialog
*)Unsafe.AsPointer(ref this), hr).ThrowOnFailure();
682
private static winmdroot.Foundation.HRESULT SetClientGuid(
IFileOpenDialog
* pThis, global::System.Guid* guid)
701
((delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,global::System.Guid* ,winmdroot.Foundation.HRESULT>)lpVtbl[24])((
IFileOpenDialog
*)Unsafe.AsPointer(ref this), guid).ThrowOnFailure();
707
private static winmdroot.Foundation.HRESULT ClearClientData(
IFileOpenDialog
* pThis)
726
((delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.Foundation.HRESULT>)lpVtbl[25])((
IFileOpenDialog
*)Unsafe.AsPointer(ref this)).ThrowOnFailure();
732
private static winmdroot.Foundation.HRESULT SetFilter(
IFileOpenDialog
* pThis, winmdroot.UI.Shell.IShellItemFilter* pFilter)
751
((delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.UI.Shell.IShellItemFilter* ,winmdroot.Foundation.HRESULT>)lpVtbl[26])((
IFileOpenDialog
*)Unsafe.AsPointer(ref this), pFilter).ThrowOnFailure();
757
private static winmdroot.Foundation.HRESULT GetResults(
IFileOpenDialog
* pThis, winmdroot.UI.Shell.IShellItemArray** ppenum)
789
return ((delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.UI.Shell.IShellItemArray** ,winmdroot.Foundation.HRESULT>)lpVtbl[27])((
IFileOpenDialog
*)Unsafe.AsPointer(ref this), ppenum);
795
private static winmdroot.Foundation.HRESULT GetSelectedItems(
IFileOpenDialog
* pThis, winmdroot.UI.Shell.IShellItemArray** ppsai)
823
((delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.UI.Shell.IShellItemArray** ,winmdroot.Foundation.HRESULT>)lpVtbl[28])((
IFileOpenDialog
*)Unsafe.AsPointer(ref this), ppsai).ThrowOnFailure();
847
internal delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT> QueryInterface_1;
849
internal delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,uint> AddRef_2;
851
internal delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,uint> Release_3;
853
internal delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.Foundation.HWND ,winmdroot.Foundation.HRESULT> Show_4;
855
internal delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,uint ,winmdroot.UI.Shell.Common.COMDLG_FILTERSPEC* ,winmdroot.Foundation.HRESULT> SetFileTypes_5;
857
internal delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,uint ,winmdroot.Foundation.HRESULT> SetFileTypeIndex_6;
859
internal delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,uint* ,winmdroot.Foundation.HRESULT> GetFileTypeIndex_7;
861
internal delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.UI.Shell.IFileDialogEvents* ,uint* ,winmdroot.Foundation.HRESULT> Advise_8;
863
internal delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,uint ,winmdroot.Foundation.HRESULT> Unadvise_9;
865
internal delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.UI.Shell.FILEOPENDIALOGOPTIONS ,winmdroot.Foundation.HRESULT> SetOptions_10;
867
internal delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.UI.Shell.FILEOPENDIALOGOPTIONS* ,winmdroot.Foundation.HRESULT> GetOptions_11;
869
internal delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.UI.Shell.IShellItem* ,winmdroot.Foundation.HRESULT> SetDefaultFolder_12;
871
internal delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.UI.Shell.IShellItem* ,winmdroot.Foundation.HRESULT> SetFolder_13;
873
internal delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.UI.Shell.IShellItem** ,winmdroot.Foundation.HRESULT> GetFolder_14;
875
internal delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.UI.Shell.IShellItem** ,winmdroot.Foundation.HRESULT> GetCurrentSelection_15;
877
internal delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.Foundation.PCWSTR ,winmdroot.Foundation.HRESULT> SetFileName_16;
879
internal delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.Foundation.PWSTR* ,winmdroot.Foundation.HRESULT> GetFileName_17;
881
internal delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.Foundation.PCWSTR ,winmdroot.Foundation.HRESULT> SetTitle_18;
883
internal delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.Foundation.PCWSTR ,winmdroot.Foundation.HRESULT> SetOkButtonLabel_19;
885
internal delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.Foundation.PCWSTR ,winmdroot.Foundation.HRESULT> SetFileNameLabel_20;
887
internal delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.UI.Shell.IShellItem** ,winmdroot.Foundation.HRESULT> GetResult_21;
889
internal delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.UI.Shell.IShellItem* ,winmdroot.UI.Shell.FDAP ,winmdroot.Foundation.HRESULT> AddPlace_22;
891
internal delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.Foundation.PCWSTR ,winmdroot.Foundation.HRESULT> SetDefaultExtension_23;
893
internal delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.Foundation.HRESULT ,winmdroot.Foundation.HRESULT> Close_24;
895
internal delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,global::System.Guid* ,winmdroot.Foundation.HRESULT> SetClientGuid_25;
897
internal delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.Foundation.HRESULT> ClearClientData_26;
899
internal delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.UI.Shell.IShellItemFilter* ,winmdroot.Foundation.HRESULT> SetFilter_27;
901
internal delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.UI.Shell.IShellItemArray** ,winmdroot.Foundation.HRESULT> GetResults_28;
903
internal delegate *unmanaged [Stdcall]<
IFileOpenDialog
*,winmdroot.UI.Shell.IShellItemArray** ,winmdroot.Foundation.HRESULT> GetSelectedItems_29;
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*)"/>
24
internal static unsafe winmdroot.Foundation.HRESULT SetFileTypes(this winmdroot.UI.Shell.
IFileOpenDialog
.Interface @this, ReadOnlySpan<winmdroot.UI.Shell.Common.COMDLG_FILTERSPEC> rgFilterSpec)
33
/// <inheritdoc cref="winmdroot.UI.Shell.
IFileOpenDialog
.Interface.GetFileTypeIndex(uint*)"/>
34
internal static unsafe winmdroot.Foundation.HRESULT GetFileTypeIndex(this winmdroot.UI.Shell.
IFileOpenDialog
.Interface @this, out uint piFileType)
43
/// <inheritdoc cref="winmdroot.UI.Shell.
IFileOpenDialog
.Interface.Advise(winmdroot.UI.Shell.IFileDialogEvents*, uint*)"/>
44
internal static unsafe winmdroot.Foundation.HRESULT Advise(this winmdroot.UI.Shell.
IFileOpenDialog
.Interface @this, winmdroot.UI.Shell.IFileDialogEvents* pfde, out uint pdwCookie)
53
/// <inheritdoc cref="winmdroot.UI.Shell.
IFileOpenDialog
.Interface.GetOptions(winmdroot.UI.Shell.FILEOPENDIALOGOPTIONS*)"/>
54
internal static unsafe winmdroot.Foundation.HRESULT GetOptions(this winmdroot.UI.Shell.
IFileOpenDialog
.Interface @this, out winmdroot.UI.Shell.FILEOPENDIALOGOPTIONS pfos)
63
/// <inheritdoc cref="winmdroot.UI.Shell.
IFileOpenDialog
.Interface.SetFileName(winmdroot.Foundation.PCWSTR)"/>
64
internal static unsafe winmdroot.Foundation.HRESULT SetFileName(this winmdroot.UI.Shell.
IFileOpenDialog
.Interface @this, string pszName)
73
/// <inheritdoc cref="winmdroot.UI.Shell.
IFileOpenDialog
.Interface.GetFileName(winmdroot.Foundation.PWSTR*)"/>
74
internal static unsafe winmdroot.Foundation.HRESULT GetFileName(this winmdroot.UI.Shell.
IFileOpenDialog
.Interface @this, out winmdroot.Foundation.PWSTR pszName)
83
/// <inheritdoc cref="winmdroot.UI.Shell.
IFileOpenDialog
.Interface.SetTitle(winmdroot.Foundation.PCWSTR)"/>
84
internal static unsafe winmdroot.Foundation.HRESULT SetTitle(this winmdroot.UI.Shell.
IFileOpenDialog
.Interface @this, string pszTitle)
93
/// <inheritdoc cref="winmdroot.UI.Shell.
IFileOpenDialog
.Interface.SetOkButtonLabel(winmdroot.Foundation.PCWSTR)"/>
94
internal static unsafe winmdroot.Foundation.HRESULT SetOkButtonLabel(this winmdroot.UI.Shell.
IFileOpenDialog
.Interface @this, string pszText)
103
/// <inheritdoc cref="winmdroot.UI.Shell.
IFileOpenDialog
.Interface.SetFileNameLabel(winmdroot.Foundation.PCWSTR)"/>
104
internal static unsafe winmdroot.Foundation.HRESULT SetFileNameLabel(this winmdroot.UI.Shell.
IFileOpenDialog
.Interface @this, string pszLabel)
113
/// <inheritdoc cref="winmdroot.UI.Shell.
IFileOpenDialog
.Interface.SetDefaultExtension(winmdroot.Foundation.PCWSTR)"/>
114
internal static unsafe winmdroot.Foundation.HRESULT SetDefaultExtension(this winmdroot.UI.Shell.
IFileOpenDialog
.Interface @this, string pszDefaultExtension)
123
/// <inheritdoc cref="winmdroot.UI.Shell.
IFileOpenDialog
.Interface.SetClientGuid(global::System.Guid*)"/>
124
internal static unsafe winmdroot.Foundation.HRESULT SetClientGuid(this winmdroot.UI.Shell.
IFileOpenDialog
.Interface @this, in global::System.Guid guid)