diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2022-08-10 19:24:24 -0500 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2022-08-10 20:27:48 -0500 |
commit | 3756ae7c8dc60d459511d0b067ebef5efb052746 (patch) | |
tree | 5aa0505d3ab4e4337575597bcad9c6fd641ea78d /src/libs/dutil/WixToolset.DUtil/inc/wndutil.h | |
parent | 84e7b6d277e5c3d118e11a45834d420254a758c0 (diff) | |
download | wix-3756ae7c8dc60d459511d0b067ebef5efb052746.tar.gz wix-3756ae7c8dc60d459511d0b067ebef5efb052746.tar.bz2 wix-3756ae7c8dc60d459511d0b067ebef5efb052746.zip |
Use IFileOpenDialog instead of SHBrowseForFolder and GetOpenFileName.
It is the recommended option since Vista and has better long path support.
Diffstat (limited to 'src/libs/dutil/WixToolset.DUtil/inc/wndutil.h')
-rw-r--r-- | src/libs/dutil/WixToolset.DUtil/inc/wndutil.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/libs/dutil/WixToolset.DUtil/inc/wndutil.h b/src/libs/dutil/WixToolset.DUtil/inc/wndutil.h index 8de77f6e..ad4e07b0 100644 --- a/src/libs/dutil/WixToolset.DUtil/inc/wndutil.h +++ b/src/libs/dutil/WixToolset.DUtil/inc/wndutil.h | |||
@@ -35,6 +35,33 @@ HRESULT DAPI WnduGetControlText( | |||
35 | __inout_z LPWSTR* psczText | 35 | __inout_z LPWSTR* psczText |
36 | ); | 36 | ); |
37 | 37 | ||
38 | /******************************************************************** | ||
39 | WnduShowOpenFileDialog - shows the system dialog to select a file for opening. | ||
40 | |||
41 | *******************************************************************/ | ||
42 | HRESULT DAPI WnduShowOpenFileDialog( | ||
43 | __in_opt HWND hwndParent, | ||
44 | __in BOOL fForcePathExists, | ||
45 | __in BOOL fForceFileExists, | ||
46 | __in_opt LPCWSTR wzTitle, | ||
47 | __in_opt COMDLG_FILTERSPEC* rgFilters, | ||
48 | __in DWORD cFilters, | ||
49 | __in DWORD dwDefaultFilter, | ||
50 | __in_opt LPCWSTR wzDefaultPath, | ||
51 | __inout LPWSTR* psczPath | ||
52 | ); | ||
53 | |||
54 | /******************************************************************** | ||
55 | WnduShowOpenFolderDialog - shows the system dialog to select a folder. | ||
56 | |||
57 | *******************************************************************/ | ||
58 | HRESULT DAPI WnduShowOpenFolderDialog( | ||
59 | __in_opt HWND hwndParent, | ||
60 | __in BOOL fForceFileSystem, | ||
61 | __in_opt LPCWSTR wzTitle, | ||
62 | __inout LPWSTR* psczPath | ||
63 | ); | ||
64 | |||
38 | #ifdef __cplusplus | 65 | #ifdef __cplusplus |
39 | } | 66 | } |
40 | #endif | 67 | #endif |