Commit ddbb3179 authored by Nigel Liang's avatar Nigel Liang Committed by Alexandre Julliard

shlwapi: Stub implementation for SHSetTimerQueueTimer.

parent 560113b7
...@@ -4223,6 +4223,32 @@ BOOL WINAPI SHQueueUserWorkItem(LPTHREAD_START_ROUTINE pfnCallback, ...@@ -4223,6 +4223,32 @@ BOOL WINAPI SHQueueUserWorkItem(LPTHREAD_START_ROUTINE pfnCallback,
} }
/*********************************************************************** /***********************************************************************
* SHSetTimerQueueTimer (SHLWAPI.263)
*/
HANDLE WINAPI SHSetTimerQueueTimer(HANDLE hQueue,
WAITORTIMERCALLBACK pfnCallback, LPVOID pContext, DWORD dwDueTime,
DWORD dwPeriod, LPCSTR lpszLibrary, DWORD dwFlags)
{
HANDLE hNewTimer;
/* SHSetTimerQueueTimer flags -> CreateTimerQueueTimer flags */
if (dwFlags & TPS_LONGEXECTIME) {
dwFlags &= ~TPS_LONGEXECTIME;
dwFlags |= WT_EXECUTELONGFUNCTION;
}
if (dwFlags & TPS_EXECUTEIO) {
dwFlags &= ~TPS_EXECUTEIO;
dwFlags |= WT_EXECUTEINIOTHREAD;
}
if (!CreateTimerQueueTimer(&hNewTimer, hQueue, pfnCallback, pContext,
dwDueTime, dwPeriod, dwFlags))
return NULL;
return hNewTimer;
}
/***********************************************************************
* IUnknown_OnFocusChangeIS (SHLWAPI.@) * IUnknown_OnFocusChangeIS (SHLWAPI.@)
*/ */
HRESULT WINAPI IUnknown_OnFocusChangeIS(LPUNKNOWN lpUnknown, LPUNKNOWN pFocusObject, BOOL bFocus) HRESULT WINAPI IUnknown_OnFocusChangeIS(LPUNKNOWN lpUnknown, LPUNKNOWN pFocusObject, BOOL bFocus)
......
...@@ -260,7 +260,7 @@ ...@@ -260,7 +260,7 @@
260 stdcall -noname SHQueueUserWorkItem(long long long long long long long) 260 stdcall -noname SHQueueUserWorkItem(long long long long long long long)
261 stub -noname SHCreateTimerQueue 261 stub -noname SHCreateTimerQueue
262 stub -noname SHDeleteTimerQueue 262 stub -noname SHDeleteTimerQueue
263 stub -noname SHSetTimerQueueTimer 263 stdcall -noname SHSetTimerQueueTimer(long ptr ptr long long str long)
264 stub -noname SHChangeTimerQueueTimer 264 stub -noname SHChangeTimerQueueTimer
265 stub -noname SHCancelTimerQueueTimer 265 stub -noname SHCancelTimerQueueTimer
266 stdcall -noname SHRestrictionLookup(long wstr ptr ptr) 266 stdcall -noname SHRestrictionLookup(long wstr ptr ptr)
......
...@@ -1041,6 +1041,10 @@ HRESULT WINAPI DllInstall(BOOL,LPCWSTR) DECLSPEC_HIDDEN; ...@@ -1041,6 +1041,10 @@ HRESULT WINAPI DllInstall(BOOL,LPCWSTR) DECLSPEC_HIDDEN;
BOOL WINAPI IsOS(DWORD); BOOL WINAPI IsOS(DWORD);
/* SHSetTimerQueueTimer definitions */
#define TPS_EXECUTEIO 0x00000001
#define TPS_LONGEXECTIME 0x00000008
#include <poppack.h> #include <poppack.h>
#ifdef __cplusplus #ifdef __cplusplus
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment