Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
57951433
Commit
57951433
authored
Oct 07, 2002
by
Steve Lustbader
Committed by
Alexandre Julliard
Oct 07, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Provide stubs for Create/DeleteTimerQueueTimer.
parent
1446a06c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
57 additions
and
4 deletions
+57
-4
kernel32.spec
dlls/kernel/kernel32.spec
+5
-3
winbase.h
include/winbase.h
+4
-1
winnt.h
include/winnt.h
+3
-0
timer.c
scheduler/timer.c
+45
-0
No files found.
dlls/kernel/kernel32.spec
View file @
57951433
...
...
@@ -955,15 +955,17 @@ init MAIN_KernelInit
@ stdcall SetThreadExecutionState(long) SetThreadExecutionState
# Windows 2000, Terminal Server 4.0 SP4 functions
@ stdcall CreateTimerQueueTimer(ptr long ptr ptr long long long) CreateTimerQueueTimer
@ stdcall DeleteTimerQueueTimer(long long long) DeleteTimerQueueTimer
@ stdcall GetCalendarInfoA(long long long ptr long ptr) GetCalendarInfoA
@ stdcall GetCalendarInfoW(long long long ptr long ptr) GetCalendarInfoW
@ stdcall GetSystemWindowsDirectoryA(ptr long) GetSystemWindowsDirectoryA
@ stdcall GetSystemWindowsDirectoryW(ptr long) GetSystemWindowsDirectoryW
@ stdcall InitializeCriticalSectionAndSpinCount(ptr long) InitializeCriticalSectionAndSpinCount
@ stdcall ProcessIdToSessionId(long ptr) ProcessIdToSessionId
@ stdcall SetCriticalSectionSpinCount(ptr long) SetCriticalSectionSpinCount
@ stdcall GetCalendarInfoA(long long long ptr long ptr) GetCalendarInfoA
@ stdcall GetCalendarInfoW(long long long ptr long ptr) GetCalendarInfoW
@ stdcall SetCalendarInfoA(long long long str) SetCalendarInfoA
@ stdcall SetCalendarInfoW(long long long wstr) SetCalendarInfoW
@ stdcall SetCriticalSectionSpinCount(ptr long) SetCriticalSectionSpinCount
@ stdcall VerifyVersionInfoA(long long long long) VerifyVersionInfoA
@ stdcall VerifyVersionInfoW(long long long long) VerifyVersionInfoW
...
...
include/winbase.h
View file @
57951433
...
...
@@ -50,7 +50,8 @@ typedef RTL_CRITICAL_SECTION_DEBUG CRITICAL_SECTION_DEBUG;
typedef
PRTL_CRITICAL_SECTION_DEBUG
PCRITICAL_SECTION_DEBUG
;
typedef
PRTL_CRITICAL_SECTION_DEBUG
LPCRITICAL_SECTION_DEBUG
;
typedef
WAITORTIMERCALLBACKFUNC
WAITORTIMERCALLBACK
;
#define EXCEPTION_DEBUG_EVENT 1
#define CREATE_THREAD_DEBUG_EVENT 2
#define CREATE_PROCESS_DEBUG_EVENT 3
...
...
@@ -1202,6 +1203,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
);
BOOL
WINAPI
CreateTimerQueueTimer
(
PHANDLE
,
HANDLE
,
WAITORTIMERCALLBACK
,
PVOID
,
DWORD
,
DWORD
,
ULONG
);
HANDLE
WINAPI
CreateWaitableTimerA
(
LPSECURITY_ATTRIBUTES
,
BOOL
,
LPCSTR
);
HANDLE
WINAPI
CreateWaitableTimerW
(
LPSECURITY_ATTRIBUTES
,
BOOL
,
LPCWSTR
);
#define CreateWaitableTimer WINELIB_NAME_AW(CreateWaitableTimer)
...
...
@@ -1210,6 +1212,7 @@ BOOL WINAPI DebugActiveProcessStop(DWORD);
void
WINAPI
DebugBreak
(
void
);
BOOL
WINAPI
DebugBreakProcess
(
HANDLE
);
BOOL
WINAPI
DebugSetProcessKillOnExit
(
BOOL
);
BOOL
WINAPI
DeleteTimerQueueTimer
(
HANDLE
,
HANDLE
,
HANDLE
);
BOOL
WINAPI
DeregisterEventSource
(
HANDLE
);
BOOL
WINAPI
DeviceIoControl
(
HANDLE
,
DWORD
,
LPVOID
,
DWORD
,
LPVOID
,
DWORD
,
LPDWORD
,
LPOVERLAPPED
);
BOOL
WINAPI
DisableThreadLibraryCalls
(
HMODULE
);
...
...
include/winnt.h
View file @
57951433
...
...
@@ -117,6 +117,7 @@
#define CALLBACK __stdcall
#define WINAPI __stdcall
#define NTAPI __stdcall
#define APIPRIVATE __stdcall
#define PASCAL __stdcall
#define CDECL __cdecl
...
...
@@ -3513,4 +3514,6 @@ typedef struct _RTL_CRITICAL_SECTION {
ULONG_PTR
SpinCount
;
}
RTL_CRITICAL_SECTION
,
*
PRTL_CRITICAL_SECTION
;
typedef
VOID
(
NTAPI
*
WAITORTIMERCALLBACKFUNC
)
(
PVOID
,
BOOLEAN
);
#endif
/* __WINE_WINNT_H */
scheduler/timer.c
View file @
57951433
...
...
@@ -28,6 +28,9 @@
#include "wine/unicode.h"
#include "file.h"
/* for FILETIME routines */
#include "wine/server.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
timer
);
/***********************************************************************
...
...
@@ -173,3 +176,45 @@ BOOL WINAPI CancelWaitableTimer( HANDLE handle )
SERVER_END_REQ
;
return
ret
;
}
/***********************************************************************
* CreateTimerQueueTimer (KERNEL32.@)
*
* Creates a timer-queue timer. This timer expires at the specified due
* time (in ms), then after every specified period (in ms). When the timer
* expires, the callback function is called.
*
* RETURNS
* nonzero on success or zero on faillure
*
* BUGS
* Unimplemented
*/
BOOL
WINAPI
CreateTimerQueueTimer
(
PHANDLE
phNewTimer
,
HANDLE
TimerQueue
,
WAITORTIMERCALLBACK
Callback
,
PVOID
Parameter
,
DWORD
DueTime
,
DWORD
Period
,
ULONG
Flags
)
{
FIXME
(
"stub
\n
"
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
TRUE
;
}
/***********************************************************************
* DeleteTimerQueueTimer (KERNEL32.@)
*
* Cancels a timer-queue timer.
*
* RETURNS
* nonzero on success or zero on faillure
*
* BUGS
* Unimplemented
*/
BOOL
WINAPI
DeleteTimerQueueTimer
(
HANDLE
TimerQueue
,
HANDLE
Timer
,
HANDLE
CompletionEvent
)
{
FIXME
(
"stub
\n
"
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
TRUE
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment