Module: wine Branch: master Commit: 7ec5f555b05152dda53b149d5994152115e2c623 URL: http://source.winehq.org/git/wine.git/?a=commit;h=7ec5f555b05152dda53b149d59...
Author: Hans Leidekker hans@codeweavers.com Date: Wed Aug 5 17:14:32 2015 +0200
shell32: Add a stub implementation of SHQueryUserNotificationState.
---
dlls/shell32/shell32.spec | 1 + dlls/shell32/shell32_main.c | 10 ++++++++++ include/shellapi.h | 13 +++++++++++++ 3 files changed, 24 insertions(+)
diff --git a/dlls/shell32/shell32.spec b/dlls/shell32/shell32.spec index ce3a9f7..91a4138 100644 --- a/dlls/shell32/shell32.spec +++ b/dlls/shell32/shell32.spec @@ -409,6 +409,7 @@ @ stdcall SHPathPrepareForWriteW(long ptr wstr long) @ stdcall SHQueryRecycleBinA(str ptr) @ stdcall SHQueryRecycleBinW(wstr ptr) +@ stdcall SHQueryUserNotificationState(ptr) @ stdcall SHSetLocalizedName(wstr wstr long) @ stdcall SHSetUnreadMailCountW(wstr long wstr) @ stdcall SHUpdateRecycleBinIcon() diff --git a/dlls/shell32/shell32_main.c b/dlls/shell32/shell32_main.c index fd4b8c8..74deecd 100644 --- a/dlls/shell32/shell32_main.c +++ b/dlls/shell32/shell32_main.c @@ -1404,3 +1404,13 @@ HRESULT WINAPI SHEnumerateUnreadMailAccountsW(HKEY user, DWORD idx, LPWSTR maila FIXME("%p %d %p %d: stub\n", user, idx, mailaddress, mailaddresslen); return E_NOTIMPL; } + +/*********************************************************************** + * SHQueryUserNotificationState (SHELL32.@) + */ +HRESULT WINAPI SHQueryUserNotificationState(QUERY_USER_NOTIFICATION_STATE *state) +{ + FIXME("%p: stub\n", state); + *state = QUNS_ACCEPTS_NOTIFICATIONS; + return S_OK; +} diff --git a/include/shellapi.h b/include/shellapi.h index 8492155..57454e3 100644 --- a/include/shellapi.h +++ b/include/shellapi.h @@ -490,6 +490,19 @@ HRESULT WINAPI SHQueryRecycleBinW(LPCWSTR,LPSHQUERYRBINFO); * Misc */
+typedef enum +{ + QUNS_NOT_PRESENT = 1, + QUNS_BUSY = 2, + QUNS_RUNNING_D3D_FULL_SCREEN = 3, + QUNS_PRESENTATION_MODE = 4, + QUNS_ACCEPTS_NOTIFICATIONS = 5, + QUNS_QUIET_TIME = 6, + QUNS_APP = 7 +} QUERY_USER_NOTIFICATION_STATE; + +HRESULT WINAPI SHQueryUserNotificationState(QUERY_USER_NOTIFICATION_STATE*); + typedef enum SHSTOCKICONID { SIID_INVALID=-1,