ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

timedate.h
Go to the documentation of this file.
00001 #include <windows.h>
00002 #include <windowsx.h>
00003 #include <stdio.h>
00004 #include <math.h>
00005 #include <commctrl.h>
00006 #include <cpl.h>
00007 
00008 #include "resource.h"
00009 
00010 #define MAX_KEY_LENGTH 255
00011 #define MAX_VALUE_NAME 16383
00012 #define SERVERLISTSIZE 6
00013 #define BUFSIZE 1024
00014 #define NTPPORT 123
00015 #define ID_TIMER 1
00016 
00017 typedef struct
00018 {
00019   UINT idIcon;
00020   UINT idName;
00021   UINT idDescription;
00022   APPLET_PROC AppletProc;
00023 } APPLET, *PAPPLET;
00024 
00025 extern HINSTANCE hApplet;
00026 
00027 
00028 /* dateandtime.c */
00029 INT_PTR CALLBACK DateTimePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
00030 BOOL SystemSetLocalTime(LPSYSTEMTIME lpSystemTime);
00031 
00032 
00033 /* timezone.c */
00034 INT_PTR CALLBACK TimeZonePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
00035 
00036 
00037 /* internettime.c */
00038 INT_PTR CALLBACK InetTimePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
00039 
00040 
00041 /* timedate.c */
00042 #if DBG
00043 VOID DisplayWin32ErrorDbg(DWORD dwErrorCode, const char *file, int line);
00044 #define DisplayWin32Error(e) DisplayWin32ErrorDbg(e, __FILE__, __LINE__);
00045 #else
00046 VOID DisplayWin32Error(DWORD dwErrorCode);
00047 #endif
00048 
00049 
00050 /* clock.c */
00051 #define CLM_STOPCLOCK (WM_USER + 1)
00052 #define CLM_STARTCLOCK (WM_USER + 2)
00053 
00054 BOOL RegisterClockControl(VOID);
00055 VOID UnregisterClockControl(VOID);
00056 
00057 
00058 /* ntpclient.c */
00059 // NTP timestamp
00060 typedef struct _TIMEPACKET
00061 {
00062   DWORD dwInteger;
00063   DWORD dwFractional;
00064 } TIMEPACKET, *PTIMEPACKET;
00065 
00066 // NTP packet
00067 typedef struct _NTPPACKET
00068 {
00069   BYTE LiVnMode;
00070   BYTE Stratum;
00071   char Poll;
00072   char Precision;
00073   long RootDelay;
00074   long RootDispersion;
00075   char ReferenceID[4];
00076   TIMEPACKET ReferenceTimestamp;
00077   TIMEPACKET OriginateTimestamp;
00078   TIMEPACKET ReceiveTimestamp;
00079   TIMEPACKET TransmitTimestamp;
00080 }NTPPACKET, *PNTPPACKET;
00081 
00082 ULONG GetServerTime(LPWSTR lpAddress);
00083 
00084 
00085 /* monthcal.c */
00086 #define MCCM_SETDATE    (WM_USER + 1)
00087 #define MCCM_GETDATE    (WM_USER + 2)
00088 #define MCCM_RESET      (WM_USER + 3)
00089 #define MCCM_CHANGED    (WM_USER + 4)
00090 
00091 #define MCCN_SELCHANGE   (1)
00092 typedef struct _NMMCCSELCHANGE
00093 {
00094     NMHDR hdr;
00095     WORD OldDay;
00096     WORD OldMonth;
00097     WORD OldYear;
00098     WORD NewDay;
00099     WORD NewMonth;
00100     WORD NewYear;
00101 } NMMCCSELCHANGE, *PNMMCCSELCHANGE;
00102 #define MCCN_AUTOUPDATE (2)
00103 typedef struct _NMMCCAUTOUPDATE
00104 {
00105     NMHDR hdr;
00106     SYSTEMTIME SystemTime;
00107 } NMMCCAUTOUPDATE, *PNMMCCAUTOUPDATE;
00108 
00109 BOOL RegisterMonthCalControl(IN HINSTANCE hInstance);
00110 VOID UnregisterMonthCalControl(IN HINSTANCE hInstance);
00111 
00112 /* EOF */

Generated on Sat May 26 2012 04:19:47 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.