ReactOS  0.4.15-dev-1384-g878186b
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 
30 typedef struct
31 {
35  APPLET_PROC AppletProc;
36 } APPLET, *PAPPLET;
37 
38 typedef struct
39 {
40  WCHAR szSyncSuc[BUFSIZE];
41  WCHAR szSyncWait[BUFSIZE];
42  WCHAR szSyncErr[BUFSIZE];
43  WCHAR szSyncType[BUFSIZE];
44  WCHAR szSyncInit[BUFSIZE];
46 
47 extern 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
65 VOID DisplayWin32ErrorDbg(DWORD dwErrorCode, const char *file, int line);
66 #define DisplayWin32Error(e) DisplayWin32ErrorDbg(e, __FILE__, __LINE__);
67 #else
68 VOID 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)
87 typedef struct _NMMCCSELCHANGE
88 {
97 #define MCCN_AUTOUPDATE (2)
98 typedef struct _NMMCCAUTOUPDATE
99 {
103 
106 
107 #endif /* _TIMEDATE_H */
#define IN
Definition: typedefs.h:39
VOID UnregisterClockControl(VOID)
Definition: clock.c:291
VOID UnregisterMonthCalControl(IN HINSTANCE hInstance)
Definition: monthcal.c:1119
HINSTANCE hApplet
Definition: access.c:17
#define BUFSIZE
Definition: timedate.h:27
LONG(APIENTRY * APPLET_PROC)(HWND, UINT, LPARAM, LPARAM)
Definition: cpl.h:23
UINT idDescription
Definition: timedate.h:34
#define CALLBACK
Definition: compat.h:35
UINT_PTR WPARAM
Definition: windef.h:207
int32_t INT_PTR
Definition: typedefs.h:64
WPARAM wParam
Definition: combotst.c:138
BOOL RegisterMonthCalControl(IN HINSTANCE hInstance)
Definition: monthcal.c:1102
struct _NMMCCAUTOUPDATE NMMCCAUTOUPDATE
SYSTEMTIME SystemTime
Definition: timedate.h:101
INT_PTR CALLBACK TimeZonePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: timezone.c:257
HINSTANCE hInstance
Definition: charmap.c:20
struct _NMMCCAUTOUPDATE * PNMMCCAUTOUPDATE
unsigned int BOOL
Definition: ntddk_ex.h:94
LONG_PTR LPARAM
Definition: windef.h:208
Definition: parser.c:48
struct APPLET * PAPPLET
INT_PTR CALLBACK InetTimePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: internettime.c:381
__wchar_t WCHAR
Definition: xmlstorage.h:180
struct _NMMCCSELCHANGE NMMCCSELCHANGE
BOOL SystemSetLocalTime(LPSYSTEMTIME lpSystemTime)
Definition: dateandtime.c:17
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned long DWORD
Definition: ntddk_ex.h:95
INT_PTR CALLBACK DateTimePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: dateandtime.c:265
unsigned int UINT
Definition: ndis.h:50
VOID DisplayWin32Error(DWORD dwErrorCode)
Definition: timedate.c:28
struct _APPLET APPLET
struct _NMMCCSELCHANGE * PNMMCCSELCHANGE
UINT idIcon
Definition: timedate.h:32
UINT idName
Definition: timedate.h:33
LPARAM lParam
Definition: combotst.c:139
Definition: fci.c:126
BOOL RegisterClockControl(VOID)
Definition: clock.c:275
struct SYNC_STATUS * PSYNC_STATUS