Louis Lenders : shell32: Add stub for Shell_NotifyIconGetRect.
Alexandre Julliard
julliard at winehq.org
Mon Dec 4 14:58:21 CST 2017
Module: wine
Branch: master
Commit: 307b20b97b9439a40160cd9bd670684a3efc6dd1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=307b20b97b9439a40160cd9bd670684a3efc6dd1
Author: Louis Lenders <xerox.xerox2000x at gmail.com>
Date: Wed Nov 29 19:24:54 2017 +0100
shell32: Add stub for Shell_NotifyIconGetRect.
Signed-off-by: Louis Lenders <xerox.xerox2000x at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/shell32/shell32.spec | 1 +
dlls/shell32/systray.c | 9 +++++++++
include/shellapi.h | 10 ++++++++++
3 files changed, 20 insertions(+)
diff --git a/dlls/shell32/shell32.spec b/dlls/shell32/shell32.spec
index c38591c..81fae6d 100644
--- a/dlls/shell32/shell32.spec
+++ b/dlls/shell32/shell32.spec
@@ -452,6 +452,7 @@
@ stdcall Shell_NotifyIcon(long ptr) Shell_NotifyIconA
@ stdcall Shell_NotifyIconA(long ptr)
@ stdcall Shell_NotifyIconW(long ptr)
+@ stdcall Shell_NotifyIconGetRect(ptr ptr)
@ stdcall StrChrA(str long) shlwapi.StrChrA
@ stdcall StrChrIA(str long) shlwapi.StrChrIA
@ stdcall StrChrIW(wstr long) shlwapi.StrChrIW
diff --git a/dlls/shell32/systray.c b/dlls/shell32/systray.c
index a043912..0fcf73e 100644
--- a/dlls/shell32/systray.c
+++ b/dlls/shell32/systray.c
@@ -243,3 +243,12 @@ noicon:
if (data != &data_buffer) HeapFree( GetProcessHeap(), 0, data );
return ret;
}
+
+/*************************************************************************
+ * Shell_NotifyIconGetRect [SHELL32.@]
+ */
+HRESULT WINAPI Shell_NotifyIconGetRect(const NOTIFYICONIDENTIFIER* identifier, RECT* icon_location)
+{
+ FIXME("stub (%p) (%p)\n", identifier, icon_location);
+ return E_NOTIMPL;
+}
diff --git a/include/shellapi.h b/include/shellapi.h
index eb09937..0e7d64c 100644
--- a/include/shellapi.h
+++ b/include/shellapi.h
@@ -434,6 +434,14 @@ typedef struct _NOTIFYICONDATAW
HICON hBalloonIcon;
} NOTIFYICONDATAW, *PNOTIFYICONDATAW;
+typedef struct _NOTIFYICONIDENTIFIER
+{
+ DWORD cbSize;
+ HWND hWnd;
+ UINT uID;
+ GUID guidItem;
+} NOTIFYICONIDENTIFIER, *PNOTIFYICONIDENTIFIER;
+
DECL_WINELIB_TYPE_AW(NOTIFYICONDATA)
DECL_WINELIB_TYPE_AW(PNOTIFYICONDATA)
@@ -442,6 +450,8 @@ BOOL WINAPI Shell_NotifyIconW(DWORD dwMessage, PNOTIFYICONDATAW lpData);
#define Shell_NotifyIcon WINELIB_NAME_AW(Shell_NotifyIcon)
+HRESULT WINAPI Shell_NotifyIconGetRect(const NOTIFYICONIDENTIFIER* identifier, RECT* iconLocation);
+
/* pre IE 5.0 */
#define NOTIFYICONDATAA_V1_SIZE FIELD_OFFSET(NOTIFYICONDATAA, szTip[64])
#define NOTIFYICONDATAW_V1_SIZE FIELD_OFFSET(NOTIFYICONDATAW, szTip[64])
More information about the wine-cvs
mailing list