Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johnny Cai
wine
Commits
57951433
Commit
57951433
authored
22 years ago
by
Steve Lustbader
Committed by
Alexandre Julliard
22 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Provide stubs for Create/DeleteTimerQueueTimer.
parent
1446a06c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
dlls/kernel/kernel32.spec
+5
-3
5 additions, 3 deletions
dlls/kernel/kernel32.spec
include/winbase.h
+4
-1
4 additions, 1 deletion
include/winbase.h
include/winnt.h
+3
-0
3 additions, 0 deletions
include/winnt.h
scheduler/timer.c
+45
-0
45 additions, 0 deletions
scheduler/timer.c
with
57 additions
and
4 deletions
dlls/kernel/kernel32.spec
+
5
−
3
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
...
...
This diff is collapsed.
Click to expand it.
include/winbase.h
+
4
−
1
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
);
...
...
This diff is collapsed.
Click to expand it.
include/winnt.h
+
3
−
0
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 */
This diff is collapsed.
Click to expand it.
scheduler/timer.c
+
45
−
0
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
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment