[KERNEL32_VISTA] Import GetFileInformationByHandleEx() from Wine Staging 1.7.55....
[reactos.git] / reactos / dll / win32 / kernel32_vista / GetTickCount64.c
1
2 #include "k32_vista.h"
3
4 /*
5 * @implemented
6 */
7 ULONGLONG
8 WINAPI
9 GetTickCount64(VOID)
10 {
11 ULARGE_INTEGER TickCount;
12
13 while (TRUE)
14 {
15 TickCount.HighPart = (ULONG)SharedUserData->TickCount.High1Time;
16 TickCount.LowPart = SharedUserData->TickCount.LowPart;
17
18 if (TickCount.HighPart == (ULONG)SharedUserData->TickCount.High2Time) break;
19
20 YieldProcessor();
21 }
22
23 return (UInt32x32To64(TickCount.LowPart, SharedUserData->TickCountMultiplier) >> 24) +
24 (UInt32x32To64(TickCount.HighPart, SharedUserData->TickCountMultiplier) << 8);
25 }