From 9a8ea65ccec0256ecda95581edd69c8d91020867 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> Date: Mon, 5 Apr 2010 05:44:52 +0000 Subject: Added x64 port Converted to Unicode Reduced size git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@494 4f64403b-2f21-0410-a795-97e2b3489a10 --- worldtime/timezone.h | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'worldtime/timezone.h') diff --git a/worldtime/timezone.h b/worldtime/timezone.h index 0770976..328abed 100644 --- a/worldtime/timezone.h +++ b/worldtime/timezone.h @@ -1,18 +1,17 @@ #ifndef _TIMEZONE_H #define _TIMEZONE_H -#define TZREG "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Time Zones" -#define TZREG_9X "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Time Zones" -//#define TZREG2 "SYSTEM\\CurrentControlSet\\Control\\TimeZoneInformation" +#define TZREG _T("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Time Zones") +#define TZREG_9X _T("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Time Zones") +//#define TZREG2 _T("SYSTEM\\CurrentControlSet\\Control\\TimeZoneInformation") #define MAX_SIZE 512 -#include -#include +#include "common.h" struct REG_TZI { - long Bias; - long StandardBias; - long DaylightBias; + LONG Bias; + LONG StandardBias; + LONG DaylightBias; SYSTEMTIME StandardDate; SYSTEMTIME DaylightDate; }; @@ -31,10 +30,10 @@ struct LS_TZREG { unsigned int list_index; - bool operator<(const LS_TZREG &other); + static int compare(const LS_TZREG *p1, const LS_TZREG *p2); }; -typedef std::vector< LS_TZREG > TimeList; +typedef OBJLIST< LS_TZREG > TimeList; extern TimeList timezone_list, geo_timezone_list; bool build_timezone_list(); -- cgit v1.2.3