ReactOS 0.4.15-dev-8093-g3285f69
timedate.h
Go to the documentation of this file.
1#ifndef _TIMEDATE_H
2#define _TIMEDATE_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 <wingdi.h>
15#include <winuser.h>
16#include <wchar.h>
17#include <commctrl.h>
18#include <cpl.h>
19#include <debug.h>
20#include <strsafe.h>
21
22#include "resource.h"
23
24#define MAX_KEY_LENGTH 255
25#define MAX_VALUE_NAME 16383
26#define SERVERLISTSIZE 6
27#define BUFSIZE 1024
28#define ID_TIMER 1
29
30typedef struct
31{
35 APPLET_PROC AppletProc;
37
38typedef struct
39{
40 WCHAR szSyncSuc[BUFSIZE];
41 WCHAR szSyncWait[BUFSIZE];
42 WCHAR szSyncErr[BUFSIZE];
43 WCHAR szSyncType[BUFSIZE];
44 WCHAR szSyncInit[BUFSIZE];
46
47extern HINSTANCE hApplet;
48
49
50/* dateandtime.c */
53
54
55/* timezone.c */
57
58
59/* internettime.c */
61
62
63/* timedate.c */
64#if DBG
65VOID DisplayWin32ErrorDbg(DWORD dwErrorCode, const char *file, int line);
66#define DisplayWin32Error(e) DisplayWin32ErrorDbg(e, __FILE__, __LINE__);
67#else
68VOID DisplayWin32Error(DWORD dwErrorCode);
69#endif
70
71
72/* clock.c */
73#define CLM_STOPCLOCK (WM_USER + 1)
74#define CLM_STARTCLOCK (WM_USER + 2)
75
78
79
80/* monthcal.c */
81#define MCCM_SETDATE (WM_USER + 1)
82#define MCCM_GETDATE (WM_USER + 2)
83#define MCCM_RESET (WM_USER + 3)
84#define MCCM_CHANGED (WM_USER + 4)
85
86#define MCCN_SELCHANGE (1)
87typedef struct _NMMCCSELCHANGE
88{
97#define MCCN_AUTOUPDATE (2)
98typedef struct _NMMCCAUTOUPDATE
99{
103
106
107#endif /* _TIMEDATE_H */
HINSTANCE hInstance
Definition: charmap.c:19
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
LONG(APIENTRY * APPLET_PROC)(HWND, UINT, LPARAM, LPARAM)
Definition: cpl.h:23
#define CALLBACK
Definition: compat.h:35
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned int UINT
Definition: ndis.h:50
Definition: hotplug.h:34
UINT idIcon
Definition: timedate.h:32
UINT idName
Definition: timedate.h:33
UINT idDescription
Definition: timedate.h:34
SYSTEMTIME SystemTime
Definition: timedate.h:101
Definition: fci.c:127
Definition: parser.c:49
BOOL RegisterMonthCalControl(IN HINSTANCE hInstance)
Definition: monthcal.c:1097
struct _NMMCCSELCHANGE * PNMMCCSELCHANGE
struct _NMMCCSELCHANGE NMMCCSELCHANGE
VOID UnregisterClockControl(VOID)
Definition: clock.c:299
struct SYNC_STATUS * PSYNC_STATUS
INT_PTR CALLBACK TimeZonePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: timezone.c:272
struct APPLET * PAPPLET
VOID UnregisterMonthCalControl(IN HINSTANCE hInstance)
Definition: monthcal.c:1114
struct _NMMCCAUTOUPDATE NMMCCAUTOUPDATE
BOOL RegisterClockControl(VOID)
Definition: clock.c:283
INT_PTR CALLBACK DateTimePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: dateandtime.c:265
VOID DisplayWin32Error(DWORD dwErrorCode)
Definition: timedate.c:28
BOOL SystemSetLocalTime(LPSYSTEMTIME lpSystemTime)
Definition: dateandtime.c:17
#define BUFSIZE
Definition: timedate.h:27
struct _NMMCCAUTOUPDATE * PNMMCCAUTOUPDATE
INT_PTR CALLBACK InetTimePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: internettime.c:381
HINSTANCE hApplet
Definition: access.c:17
int32_t INT_PTR
Definition: typedefs.h:64
#define IN
Definition: typedefs.h:39
LONG_PTR LPARAM
Definition: windef.h:208
UINT_PTR WPARAM
Definition: windef.h:207
__wchar_t WCHAR
Definition: xmlstorage.h:180