Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Get Binary TimeZone Info from Registry

Get Binary TimeZone Info from Registry

Scheduled Pinned Locked Moved C / C++ / MFC
windows-admintutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    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

    H 1 Reply Last reply
    0
    • L Lost User

      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

      H Offline
      H Offline
      HP
      wrote on last edited by
      #2

      Hi, Why do not use the API function "GetTimeZoneInformation". I think it's much easier to handle. Best Regards Holger

      L 1 Reply Last reply
      0
      • H HP

        Hi, Why do not use the API function "GetTimeZoneInformation". I think it's much easier to handle. Best Regards Holger

        L Offline
        L Offline
        lynda
        wrote on last edited by
        #3

        It's not the current timezone that I need the information about. It's all the other ones listed in the registry. Regards, Lynda

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups