ReactOS  0.4.14-dev-368-gfa26425
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 
16 #define MAX_VALUE_NAME 16383
17 #define NTPPORT 123
18 
19 
20 /* ntpclient.c */
21 // NTP timestamp
22 typedef struct _TIMEPACKET
23 {
27 
28 // NTP packet
29 typedef struct _NTPPACKET
30 {
33  char Poll;
34  char Precision;
35  long RootDelay;
37  char ReferenceID[4];
43 
44 ULONG GetServerTime(LPWSTR lpAddress);
45 
46 #endif /* _W32TIME_H */
BYTE LiVnMode
Definition: w32time.h:31
DWORD dwFractional
Definition: w32time.h:25
TIMEPACKET ReferenceTimestamp
Definition: w32time.h:38
BYTE Stratum
Definition: w32time.h:32
TIMEPACKET ReceiveTimestamp
Definition: w32time.h:40
struct _NTPPACKET * PNTPPACKET
struct _TIMEPACKET TIMEPACKET
char ReferenceID[4]
Definition: w32time.h:37
unsigned long DWORD
Definition: ntddk_ex.h:95
TIMEPACKET TransmitTimestamp
Definition: w32time.h:41
char Poll
Definition: w32time.h:33
unsigned char BYTE
Definition: mem.h:68
long RootDelay
Definition: w32time.h:35
TIMEPACKET OriginateTimestamp
Definition: w32time.h:39
DWORD dwInteger
Definition: w32time.h:24
long RootDispersion
Definition: w32time.h:36
unsigned int ULONG
Definition: retypes.h:1
struct _NTPPACKET NTPPACKET
char Precision
Definition: w32time.h:34
WCHAR * LPWSTR
Definition: xmlstorage.h:184
ULONG GetServerTime(LPWSTR lpAddress)
Definition: ntpclient.c:138
struct _TIMEPACKET * PTIMEPACKET