Get Binary TimeZone Info from Registry
-
Hi, I would like to get the TZI key value for a Timezone in the registry so that I can tell when the Daylight Savings Time and Standard Time start. I'm using RegQueryValueEx to get the value. It returns the size correctly but I've no idea how to parse the DWORD returned to get the date information. DWORD size = sizeof(DWORD), type = 0, data; LONG res = RegQueryValueEx(hKey, valueName, NULL, &type, (BYTE*)&data, &size); TIA Lynda
-
Hi, I would like to get the TZI key value for a Timezone in the registry so that I can tell when the Daylight Savings Time and Standard Time start. I'm using RegQueryValueEx to get the value. It returns the size correctly but I've no idea how to parse the DWORD returned to get the date information. DWORD size = sizeof(DWORD), type = 0, data; LONG res = RegQueryValueEx(hKey, valueName, NULL, &type, (BYTE*)&data, &size); TIA Lynda
-
Hi, Why do not use the API function "GetTimeZoneInformation". I think it's much easier to handle. Best Regards Holger