Vincent Povirk : shell32: Stub SHOpenWithDialog.

Alexandre Julliard julliard at winehq.org
Tue Sep 12 15:40:38 CDT 2017


Module: wine
Branch: master
Commit: fcd7d4404ac17d5fe002182efe3e67385ac0ed39
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=fcd7d4404ac17d5fe002182efe3e67385ac0ed39

Author: Vincent Povirk <vincent at codeweavers.com>
Date:   Mon Sep 11 15:26:53 2017 -0500

shell32: Stub SHOpenWithDialog.

Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/shell32/dialogs.c    |  6 ++++++
 dlls/shell32/shell32.spec |  1 +
 include/shlobj.h          | 24 ++++++++++++++++++++++++
 3 files changed, 31 insertions(+)

diff --git a/dlls/shell32/dialogs.c b/dlls/shell32/dialogs.c
index 28a25fd..5d7e079 100644
--- a/dlls/shell32/dialogs.c
+++ b/dlls/shell32/dialogs.c
@@ -71,6 +71,12 @@ INT WINAPI PickIconDlg(
 	return 0xffffffff;
 }
 
+HRESULT WINAPI SHOpenWithDialog(HWND parent, const OPENASINFO *info)
+{
+    FIXME("stub\n");
+    return E_NOTIMPL;
+}
+
 /*************************************************************************
  * RunFileDlgW					[internal]
  *
diff --git a/dlls/shell32/shell32.spec b/dlls/shell32/shell32.spec
index dd4accb..6974332 100644
--- a/dlls/shell32/shell32.spec
+++ b/dlls/shell32/shell32.spec
@@ -410,6 +410,7 @@
 @ stdcall SHLoadInProc(ptr)
 @ stdcall SHLoadNonloadedIconOverlayIdentifiers()
 @ stdcall SHOpenFolderAndSelectItems(ptr long ptr long)
+@ stdcall SHOpenWithDialog(long ptr)
 @ stdcall SHParseDisplayName(wstr ptr ptr long ptr)
 @ stdcall SHPathPrepareForWriteA(long ptr str long)
 @ stdcall SHPathPrepareForWriteW(long ptr wstr long)
diff --git a/include/shlobj.h b/include/shlobj.h
index ccbf008..66596a3 100644
--- a/include/shlobj.h
+++ b/include/shlobj.h
@@ -152,6 +152,30 @@ BOOL WINAPI SHObjectProperties(HWND,DWORD,LPCWSTR,LPCWSTR);
 
 int WINAPI PathCleanupSpec(LPCWSTR,LPWSTR);
 
+/* SHOpenWithDialog API */
+
+typedef enum
+{
+    OAIF_ALLOW_REGISTRATION = 0x00000001,
+    OAIF_REGISTER_EXT       = 0x00000002,
+    OAIF_EXEC               = 0x00000004,
+    OAIF_FORCE_REGISTRATION = 0x00000008,
+    OAIF_HIDE_REGISTRATION  = 0x00000020,
+    OAIF_URL_PROTOCOL       = 0x00000040,
+    OAIF_FILE_IS_URI        = 0x00000080
+} OPEN_AS_INFO_FLAGS;
+
+#include <pshpack8.h>
+typedef struct
+{
+    LPCWSTR pcszFile;
+    LPCWSTR pcszClass;
+    OPEN_AS_INFO_FLAGS oaifInFlags;
+} OPENASINFO;
+#include <poppack.h>
+
+HRESULT WINAPI SHOpenWithDialog(HWND,const OPENASINFO*);
+
 /* Shell_MergeMenus flags */
 #define MM_ADDSEPARATOR     0x00000001
 #define MM_SUBMENUSHAVEIDS  0x00000002




More information about the wine-cvs mailing list