Hello Januk,

Friday, January 9, 2004 you wrote:
-------------------------------
> Just to remind everyone, the purpose is to determine Dan's current
> timezone & daylight savings setting automatically. Now that TB has
> plugin macros, an alternate, and probably much easier solution could
> involve a short plugin macro that just reads & returns the info from
> the Windows registry (it must be there somewhere).  I haven't yet
> attempted to learn how to make plugins, so that's why I sent Dan
> here.

can be obtained from registry - see:
     "HKLM\System\CurrentControlSet\Control\TimeZoneInformation"

But probably better using Windows API:
     call GetTimeZoneInformation()

     gives struct _TIME_ZONE_INFORMATION { // tzi
     LONG       Bias;
     WCHAR      StandardName[ 32 ];
     SYSTEMTIME StandardDate;
     LONG       StandardBias;
     WCHAR      DaylightName[ 32 ];
     SYSTEMTIME DaylightDate;
     LONG       DaylightBias;
     
     Where Bias is difference in minutes between UTC and local time.
     

Terry Fritts




________________________________________________________

http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to