diff options
author | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2010-04-05 05:44:52 +0000 |
---|---|---|
committer | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2010-04-05 05:44:52 +0000 |
commit | 9a8ea65ccec0256ecda95581edd69c8d91020867 (patch) | |
tree | a6614ace0f554686f44e11af80390a98977ce0bc /worldtime/timezone.h | |
parent | 70ee49c6aa80f3dd35078321fc4807fcd55353fc (diff) |
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
Diffstat (limited to 'worldtime/timezone.h')
-rw-r--r-- | worldtime/timezone.h | 19 |
1 files changed, 9 insertions, 10 deletions
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 <vector>
-#include <algorithm>
+#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();
|