From a2e12224864479e943afa8681561b7e04e12a3a5 Mon Sep 17 00:00:00 2001 From: Steve Lustbader Date: Mon, 25 Nov 2002 20:51:31 +0000 Subject: [PATCH] Stubs for CreateTimerQueue and DeleteTimerQueueEx. --- dlls/kernel/kernel32.spec | 2 ++ include/winbase.h | 2 ++ scheduler/timer.c | 21 +++++++++++++++++++++ 3 files changed, 25 insertions(+) diff --git a/dlls/kernel/kernel32.spec b/dlls/kernel/kernel32.spec index 6ba75fa554..b0d351596c 100644 --- a/dlls/kernel/kernel32.spec +++ b/dlls/kernel/kernel32.spec @@ -956,7 +956,9 @@ @ stdcall SetThreadExecutionState(long) SetThreadExecutionState # Windows 2000, Terminal Server 4.0 SP4 functions +@ stdcall CreateTimerQueue () CreateTimerQueue @ stdcall CreateTimerQueueTimer(ptr long ptr ptr long long long) CreateTimerQueueTimer +@ stdcall DeleteTimerQueueEx (long long) DeleteTimerQueueEx @ stdcall DeleteTimerQueueTimer(long long long) DeleteTimerQueueTimer @ stdcall GetCalendarInfoA(long long long ptr long ptr) GetCalendarInfoA @ stdcall GetCalendarInfoW(long long long ptr long ptr) GetCalendarInfoW diff --git a/include/winbase.h b/include/winbase.h index 2aac78eb5b..ec54005fc7 100644 --- a/include/winbase.h +++ b/include/winbase.h @@ -1207,6 +1207,7 @@ HANDLE WINAPI CreateSemaphoreW(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCWSTR); #define CreateSemaphore WINELIB_NAME_AW(CreateSemaphore) DWORD WINAPI CreateTapePartition(HANDLE,DWORD,DWORD,DWORD); HANDLE WINAPI CreateThread(LPSECURITY_ATTRIBUTES,SIZE_T,LPTHREAD_START_ROUTINE,LPVOID,DWORD,LPDWORD); +HANDLE WINAPI CreateTimerQueue(void); BOOL WINAPI CreateTimerQueueTimer(PHANDLE,HANDLE,WAITORTIMERCALLBACK,PVOID,DWORD,DWORD,ULONG); HANDLE WINAPI CreateWaitableTimerA(LPSECURITY_ATTRIBUTES,BOOL,LPCSTR); HANDLE WINAPI CreateWaitableTimerW(LPSECURITY_ATTRIBUTES,BOOL,LPCWSTR); @@ -1216,6 +1217,7 @@ BOOL WINAPI DebugActiveProcessStop(DWORD); void WINAPI DebugBreak(void); BOOL WINAPI DebugBreakProcess(HANDLE); BOOL WINAPI DebugSetProcessKillOnExit(BOOL); +BOOL WINAPI DeleteTimerQueueEx(HANDLE,HANDLE); BOOL WINAPI DeleteTimerQueueTimer(HANDLE,HANDLE,HANDLE); BOOL WINAPI DeregisterEventSource(HANDLE); BOOL WINAPI DeviceIoControl(HANDLE,DWORD,LPVOID,DWORD,LPVOID,DWORD,LPDWORD,LPOVERLAPPED); diff --git a/scheduler/timer.c b/scheduler/timer.c index c3026e5296..41936bd9b3 100644 --- a/scheduler/timer.c +++ b/scheduler/timer.c @@ -182,6 +182,27 @@ BOOL WINAPI CancelWaitableTimer( HANDLE handle ) } +/*********************************************************************** + * CreateTimerQueue (KERNEL32.@) + */ +HANDLE WINAPI CreateTimerQueue() +{ + FIXME("stub\n"); + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return NULL; +} + + +/*********************************************************************** + * DeleteTimerQueueEx (KERNEL32.@) + */ +BOOL WINAPI DeleteTimerQueueEx(HANDLE TimerQueue, HANDLE CompletionEvent) +{ + FIXME("(%p, %p): stub\n", TimerQueue, CompletionEvent); + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return 0; +} + /*********************************************************************** * CreateTimerQueueTimer (KERNEL32.@) * -- 2.32.0.93.g670b81a890