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. SetWaitableTimer's absolute time?

SetWaitableTimer's absolute time?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialjsonquestion
5 Posts 4 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.
  • I Offline
    I Offline
    iceman8616
    wrote on last edited by
    #1

    hi everybody! i want to use "SetWaitableTimer" api,but i don't know how to set "pDueTime". for example,if i want to set "pDueTime" a value "2009-10-20 13:34:10",what value should i set to "pDueTime".

    _ 1 Reply Last reply
    0
    • I iceman8616

      hi everybody! i want to use "SetWaitableTimer" api,but i don't know how to set "pDueTime". for example,if i want to set "pDueTime" a value "2009-10-20 13:34:10",what value should i set to "pDueTime".

      _ Offline
      _ Offline
      _Superman_
      wrote on last edited by
      #2

      Use SystemTimeToFileTime[^] and convert the time that you need represented using the SYSTEMTIME[^] structure to a FILETIME[^] structure. You can now convert the FILETIME to a LARGE_INTEGER[^]. The documentation for FILETIME tells you how to.

      «_Superman_» I love work. It gives me something to do between weekends.
      Microsoft MVP (Visual C++)

      L 1 Reply Last reply
      0
      • _ _Superman_

        Use SystemTimeToFileTime[^] and convert the time that you need represented using the SYSTEMTIME[^] structure to a FILETIME[^] structure. You can now convert the FILETIME to a LARGE_INTEGER[^]. The documentation for FILETIME tells you how to.

        «_Superman_» I love work. It gives me something to do between weekends.
        Microsoft MVP (Visual C++)

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        No, useless. Use directly RTL apis.

        H I 2 Replies Last reply
        0
        • L Lost User

          No, useless. Use directly RTL apis.

          H Offline
          H Offline
          Henry Minute
          wrote on last edited by
          #4

          Reference?/Example?

          Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

          1 Reply Last reply
          0
          • L Lost User

            No, useless. Use directly RTL apis.

            I Offline
            I Offline
            iceman8616
            wrote on last edited by
            #5

            what's RTL apis?

            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