ReactOS 0.4.16-dev-237-gd6eebaa
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#define W32TIME_POLL_INTERVAL (4 * 60 * 60) // 4 hours.
20
21
22/* ntpclient.c */
23// NTP timestamp
24typedef struct _TIMEPACKET
25{
29
30// NTP packet
31typedef struct _NTPPACKET
32{
35 char Poll;
39 char ReferenceID[4];
45
46ULONG GetServerTime(LPWSTR lpAddress);
47
48#endif /* _W32TIME_H */
unsigned long DWORD
Definition: ntddk_ex.h:95
TIMEPACKET TransmitTimestamp
Definition: w32time.h:43
TIMEPACKET ReferenceTimestamp
Definition: w32time.h:40
BYTE LiVnMode
Definition: w32time.h:33
char Poll
Definition: w32time.h:35
char Precision
Definition: w32time.h:36
BYTE Stratum
Definition: w32time.h:34
long RootDispersion
Definition: w32time.h:38
TIMEPACKET ReceiveTimestamp
Definition: w32time.h:42
char ReferenceID[4]
Definition: w32time.h:39
TIMEPACKET OriginateTimestamp
Definition: w32time.h:41
long RootDelay
Definition: w32time.h:37
DWORD dwInteger
Definition: w32time.h:26
DWORD dwFractional
Definition: w32time.h:27
uint32_t ULONG
Definition: typedefs.h:59
struct _NTPPACKET NTPPACKET
ULONG GetServerTime(LPWSTR lpAddress)
Definition: ntpclient.c:138
struct _TIMEPACKET * PTIMEPACKET
struct _TIMEPACKET TIMEPACKET
struct _NTPPACKET * PNTPPACKET
WCHAR * LPWSTR
Definition: xmlstorage.h:184
unsigned char BYTE
Definition: xxhash.c:193