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. FILETIME to DWORDs

FILETIME to DWORDs

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
4 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.
  • A Offline
    A Offline
    ashtwin
    wrote on last edited by
    #1

    Hi, i want to converts FILETIME into two DWORDs, one for date and the ohter for time in the same way NTFS stores file modification, creation and access date. can anybody teell how to do this.

    C P 2 Replies Last reply
    0
    • A ashtwin

      Hi, i want to converts FILETIME into two DWORDs, one for date and the ohter for time in the same way NTFS stores file modification, creation and access date. can anybody teell how to do this.

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      a FILETIME structure is already two DWORDs...

      typedef struct _FILETIME {
      DWORD dwLowDateTime; /* low 32 bits */
      DWORD dwHighDateTime; /* high 32 bits */
      } FILETIME, *PFILETIME, *LPFILETIME;

      Do the chickens have large talons?

      1 Reply Last reply
      0
      • A ashtwin

        Hi, i want to converts FILETIME into two DWORDs, one for date and the ohter for time in the same way NTFS stores file modification, creation and access date. can anybody teell how to do this.

        P Offline
        P Offline
        Parthi_Appu
        wrote on last edited by
        #3

        I think its not a good idea and i don't have any about the NTFS systems. The file time is stored as number of 100 nano second intervels, so that much of number cann't be in a singlr DWORD at one level. This is my thought but don't know excatly..

        A 1 Reply Last reply
        0
        • P Parthi_Appu

          I think its not a good idea and i don't have any about the NTFS systems. The file time is stored as number of 100 nano second intervels, so that much of number cann't be in a singlr DWORD at one level. This is my thought but don't know excatly..

          A Offline
          A Offline
          ashtwin
          wrote on last edited by
          #4

          Hi, thanks for replying. I tried to convert the FILETIME into year, months etc by calculating the no of 100 nano second intervals from 1601. But the value i am geting is quite high. Thanks.

          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