shell32: Add stub for Shell_NotifyIconGetRect.

Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Louis Lenders 2017-11-29 19:24:54 +01:00 committed by Alexandre Julliard
parent 72db61da97
commit 307b20b97b
3 changed files with 20 additions and 0 deletions

View File

@ -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

View File

@ -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;
}

View File

@ -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])