shell32: Stub SHOpenWithDialog.

Vincent Povirk vincent at codeweavers.com
Mon Sep 11 15:26:53 CDT 2017


Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
---
 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
-- 
2.7.4




More information about the wine-patches mailing list