ReactOS 0.4.15-dev-7889-g76290a6
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
23typedef struct _TIMEPACKET
24{
28
29// NTP packet
30typedef struct _NTPPACKET
31{
34 char Poll;
38 char ReferenceID[4];
44
45ULONG GetServerTime(LPWSTR lpAddress);
46
47#endif /* _W32TIME_H */
unsigned long DWORD
Definition: ntddk_ex.h:95
TIMEPACKET TransmitTimestamp
Definition: w32time.h:42
TIMEPACKET ReferenceTimestamp
Definition: w32time.h:39
BYTE LiVnMode
Definition: w32time.h:32
char Poll
Definition: w32time.h:34
char Precision
Definition: w32time.h:35
BYTE Stratum
Definition: w32time.h:33
long RootDispersion
Definition: w32time.h:37
TIMEPACKET ReceiveTimestamp
Definition: w32time.h:41
char ReferenceID[4]
Definition: w32time.h:38
TIMEPACKET OriginateTimestamp
Definition: w32time.h:40
long RootDelay
Definition: w32time.h:36
DWORD dwInteger
Definition: w32time.h:25
DWORD dwFractional
Definition: w32time.h:26
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