#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
#include <winnls.h>
#include <winreg.h>
#include <winsvc.h>
#include <winuser.h>
Go to the source code of this file.
◆ _INC_WINDOWS
◆ COM_NO_WINDOWS_H
◆ MAX_VALUE_NAME
◆ NTPPORT
◆ W32TIME_POLL_INTERVAL
#define W32TIME_POLL_INTERVAL (4 * 60 * 60) |
◆ WIN32_NO_STATUS
◆ NTPPACKET
◆ PNTPPACKET
◆ PTIMEPACKET
◆ TIMEPACKET
◆ GetServerTime()
Definition at line 138 of file ntpclient.c.
139{
144
146 0,
149 0,
151
152 if (pInfo && lpAddr)
153 {
155 0,
156 lpAddress,
157 -1,
158 lpAddr,
162 {
164 {
166 {
168 }
169 }
170
172 }
173 }
174
175 if (pInfo)
177 if (lpAddr)
179
180 return ulTime;
181}
#define HeapFree(x, y, z)
#define WideCharToMultiByte
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
static BOOL SendData(PINFO pInfo)
static VOID DestroyConnection(VOID)
static BOOL InitConnection(PINFO pInfo, LPSTR lpAddress)
static ULONG ReceiveData(PINFO pInfo)
Referenced by SetTime().