2014-02-05 18:17:27 +00:00
|
|
|
#ifndef _TIMEDATE_H
|
|
|
|
#define _TIMEDATE_H
|
|
|
|
|
2013-01-24 23:00:42 +00:00
|
|
|
#include <stdarg.h>
|
2014-01-19 10:40:50 +00:00
|
|
|
|
|
|
|
#define _INC_WINDOWS
|
|
|
|
#define COM_NO_WINDOWS_H
|
|
|
|
#define WIN32_NO_STATUS
|
|
|
|
|
2013-01-24 23:00:42 +00:00
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
|
|
|
#include <winnls.h>
|
|
|
|
#include <winreg.h>
|
|
|
|
#include <wingdi.h>
|
|
|
|
#include <winuser.h>
|
|
|
|
#include <wchar.h>
|
2006-03-01 21:44:17 +00:00
|
|
|
#include <commctrl.h>
|
|
|
|
#include <cpl.h>
|
2020-02-05 18:54:33 +00:00
|
|
|
#include <debug.h>
|
2020-02-24 10:56:02 +00:00
|
|
|
#include <strsafe.h>
|
2006-03-01 21:44:17 +00:00
|
|
|
|
|
|
|
#include "resource.h"
|
|
|
|
|
2006-06-22 17:13:29 +00:00
|
|
|
#define MAX_KEY_LENGTH 255
|
|
|
|
#define MAX_VALUE_NAME 16383
|
2006-03-01 21:44:17 +00:00
|
|
|
#define SERVERLISTSIZE 6
|
|
|
|
#define BUFSIZE 1024
|
|
|
|
#define ID_TIMER 1
|
|
|
|
|
2004-10-30 19:16:20 +00:00
|
|
|
typedef struct
|
|
|
|
{
|
2006-06-22 17:13:29 +00:00
|
|
|
UINT idIcon;
|
|
|
|
UINT idName;
|
|
|
|
UINT idDescription;
|
2004-10-30 19:16:20 +00:00
|
|
|
APPLET_PROC AppletProc;
|
|
|
|
} APPLET, *PAPPLET;
|
|
|
|
|
2020-02-24 10:56:02 +00:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
WCHAR szSyncSuc[BUFSIZE];
|
|
|
|
WCHAR szSyncWait[BUFSIZE];
|
|
|
|
WCHAR szSyncErr[BUFSIZE];
|
|
|
|
WCHAR szSyncType[BUFSIZE];
|
|
|
|
WCHAR szSyncInit[BUFSIZE];
|
|
|
|
} SYNC_STATUS, *PSYNC_STATUS;
|
|
|
|
|
2004-10-30 19:16:20 +00:00
|
|
|
extern HINSTANCE hApplet;
|
|
|
|
|
2006-06-22 17:13:29 +00:00
|
|
|
|
|
|
|
/* dateandtime.c */
|
|
|
|
INT_PTR CALLBACK DateTimePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
2018-06-03 10:33:24 +00:00
|
|
|
BOOL SystemSetLocalTime(LPSYSTEMTIME lpSystemTime);
|
2006-06-22 17:13:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* timezone.c */
|
|
|
|
INT_PTR CALLBACK TimeZonePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
|
|
|
|
|
|
|
|
|
|
/* internettime.c */
|
|
|
|
INT_PTR CALLBACK InetTimePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
|
|
|
|
|
|
|
2006-06-21 19:57:58 +00:00
|
|
|
/* timedate.c */
|
2006-10-03 17:02:36 +00:00
|
|
|
#if DBG
|
|
|
|
VOID DisplayWin32ErrorDbg(DWORD dwErrorCode, const char *file, int line);
|
|
|
|
#define DisplayWin32Error(e) DisplayWin32ErrorDbg(e, __FILE__, __LINE__);
|
|
|
|
#else
|
|
|
|
VOID DisplayWin32Error(DWORD dwErrorCode);
|
|
|
|
#endif
|
2006-03-01 21:44:17 +00:00
|
|
|
|
2006-06-22 17:13:29 +00:00
|
|
|
|
2006-06-21 19:57:58 +00:00
|
|
|
/* clock.c */
|
2008-09-04 15:51:11 +00:00
|
|
|
#define CLM_STOPCLOCK (WM_USER + 1)
|
|
|
|
#define CLM_STARTCLOCK (WM_USER + 2)
|
2007-05-12 12:37:23 +00:00
|
|
|
|
2006-06-21 19:57:58 +00:00
|
|
|
BOOL RegisterClockControl(VOID);
|
|
|
|
VOID UnregisterClockControl(VOID);
|
|
|
|
|
2006-06-22 17:13:29 +00:00
|
|
|
|
2006-03-07 20:59:11 +00:00
|
|
|
/* monthcal.c */
|
|
|
|
#define MCCM_SETDATE (WM_USER + 1)
|
|
|
|
#define MCCM_GETDATE (WM_USER + 2)
|
|
|
|
#define MCCM_RESET (WM_USER + 3)
|
|
|
|
#define MCCM_CHANGED (WM_USER + 4)
|
|
|
|
|
|
|
|
#define MCCN_SELCHANGE (1)
|
|
|
|
typedef struct _NMMCCSELCHANGE
|
|
|
|
{
|
|
|
|
NMHDR hdr;
|
|
|
|
WORD OldDay;
|
|
|
|
WORD OldMonth;
|
|
|
|
WORD OldYear;
|
|
|
|
WORD NewDay;
|
|
|
|
WORD NewMonth;
|
|
|
|
WORD NewYear;
|
|
|
|
} NMMCCSELCHANGE, *PNMMCCSELCHANGE;
|
|
|
|
#define MCCN_AUTOUPDATE (2)
|
|
|
|
typedef struct _NMMCCAUTOUPDATE
|
|
|
|
{
|
|
|
|
NMHDR hdr;
|
|
|
|
SYSTEMTIME SystemTime;
|
|
|
|
} NMMCCAUTOUPDATE, *PNMMCCAUTOUPDATE;
|
|
|
|
|
|
|
|
BOOL RegisterMonthCalControl(IN HINSTANCE hInstance);
|
|
|
|
VOID UnregisterMonthCalControl(IN HINSTANCE hInstance);
|
|
|
|
|
2014-02-05 18:17:27 +00:00
|
|
|
#endif /* _TIMEDATE_H */
|