Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
40fb7ca1
Commit
40fb7ca1
authored
Jul 11, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Implemented GetTickCount64.
parent
6544d9ee
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
1 deletion
+21
-1
kernel32.spec
dlls/kernel32/kernel32.spec
+1
-0
kernel_main.c
dlls/kernel32/kernel_main.c
+19
-1
winbase.h
include/winbase.h
+1
-0
No files found.
dlls/kernel32/kernel32.spec
View file @
40fb7ca1
...
...
@@ -636,6 +636,7 @@
@ stdcall GetThreadSelectorEntry(long long ptr)
@ stdcall GetThreadTimes(long ptr ptr ptr ptr)
@ stdcall GetTickCount()
@ stdcall -ret64 GetTickCount64()
@ stdcall GetTimeFormatA(long long ptr str ptr long)
@ stdcall GetTimeFormatW(long long ptr wstr ptr long)
@ stdcall GetTimeZoneInformation(ptr)
...
...
dlls/kernel32/kernel_main.c
View file @
40fb7ca1
...
...
@@ -46,6 +46,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(process);
extern
int
__wine_set_signal_handler
(
unsigned
,
int
(
*
)(
unsigned
));
static
ULONGLONG
server_start_time
;
/***********************************************************************
* KERNEL thread initialisation routine
*/
...
...
@@ -112,12 +114,16 @@ static void set_entry_point( HMODULE module, const char *name, DWORD rva )
static
BOOL
process_attach
(
HMODULE
module
)
{
SYSTEM_INFO
si
;
SYSTEM_TIMEOFDAY_INFORMATION
ti
;
RTL_USER_PROCESS_PARAMETERS
*
params
=
NtCurrentTeb
()
->
Peb
->
ProcessParameters
;
/* FIXME: should probably be done in ntdll */
GetSystemInfo
(
&
si
);
NtCurrentTeb
()
->
Peb
->
NumberOfProcessors
=
si
.
dwNumberOfProcessors
;
NtQuerySystemInformation
(
SystemTimeOfDayInformation
,
&
ti
,
sizeof
(
ti
),
NULL
);
server_start_time
=
ti
.
liKeBootTime
.
QuadPart
;
/* Setup registry locale information */
LOCALE_InitRegistry
();
...
...
@@ -236,6 +242,18 @@ INT WINAPI MulDiv( INT nMultiplicand, INT nMultiplier, INT nDivisor)
}
/******************************************************************************
* GetTickCount64 (KERNEL32.@)
*/
ULONGLONG
WINAPI
GetTickCount64
(
void
)
{
LARGE_INTEGER
now
;
NtQuerySystemTime
(
&
now
);
return
(
now
.
QuadPart
-
server_start_time
)
/
10000
;
}
/***********************************************************************
* GetTickCount (KERNEL32.@)
*
...
...
@@ -254,5 +272,5 @@ INT WINAPI MulDiv( INT nMultiplicand, INT nMultiplier, INT nDivisor)
*/
DWORD
WINAPI
GetTickCount
(
void
)
{
return
NtGetTickCount
();
return
GetTickCount64
();
}
include/winbase.h
View file @
40fb7ca1
...
...
@@ -1679,6 +1679,7 @@ DWORD WINAPI GetTempPathA(DWORD,LPSTR);
DWORD
WINAPI
GetTempPathW
(
DWORD
,
LPWSTR
);
#define GetTempPath WINELIB_NAME_AW(GetTempPath)
DWORD
WINAPI
GetTickCount
(
void
);
ULONGLONG
WINAPI
GetTickCount64
(
void
);
DWORD
WINAPI
GetTimeZoneInformation
(
LPTIME_ZONE_INFORMATION
);
BOOL
WINAPI
GetThreadContext
(
HANDLE
,
CONTEXT
*
);
INT
WINAPI
GetThreadPriority
(
HANDLE
);
...
...
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