ReactOS  0.4.15-dev-4616-g17e0e44
w32time.h
Go to the documentation of this file.
1 #ifndef _W32TIME_H
2 #define _W32TIME_H
3 
4 #include <stdarg.h>
5 
6 #define _INC_WINDOWS
7 #define COM_NO_WINDOWS_H
8 #define WIN32_NO_STATUS
9 
10 #include <windef.h>
11 #include <winbase.h>
12 #include <winnls.h>
13 #include <winreg.h>
14 #include <winsvc.h>
15 #include <winuser.h>
16 
17 #define MAX_VALUE_NAME 16383
18 #define NTPPORT 123
19 
20 
21 /* ntpclient.c */
22 // NTP timestamp
23 typedef struct _TIMEPACKET
24 {
28 
29 // NTP packet
30 typedef struct _NTPPACKET
31 {
34  char Poll;
35  char Precision;
36  long RootDelay;
38  char ReferenceID[4];
44 
45 ULONG GetServerTime(LPWSTR lpAddress);
46 
47 #endif /* _W32TIME_H */
BYTE LiVnMode
Definition: w32time.h:32
DWORD dwFractional
Definition: w32time.h:26
TIMEPACKET ReferenceTimestamp
Definition: w32time.h:39
BYTE Stratum
Definition: w32time.h:33
TIMEPACKET ReceiveTimestamp
Definition: w32time.h:41
struct _NTPPACKET * PNTPPACKET
struct _TIMEPACKET TIMEPACKET
char ReferenceID[4]
Definition: w32time.h:38
unsigned long DWORD
Definition: ntddk_ex.h:95
TIMEPACKET TransmitTimestamp
Definition: w32time.h:42
char Poll
Definition: w32time.h:34
unsigned char BYTE
Definition: xxhash.c:193
long RootDelay
Definition: w32time.h:36
TIMEPACKET OriginateTimestamp
Definition: w32time.h:40
DWORD dwInteger
Definition: w32time.h:25
long RootDispersion
Definition: w32time.h:37
unsigned int ULONG
Definition: retypes.h:1
struct _NTPPACKET NTPPACKET
char Precision
Definition: w32time.h:35
WCHAR * LPWSTR
Definition: xmlstorage.h:184
ULONG GetServerTime(LPWSTR lpAddress)
Definition: ntpclient.c:138
struct _TIMEPACKET * PTIMEPACKET