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. System Sutdown and Start time

System Sutdown and Start time

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

    Is there a way know at what time the system has been shutted down. When the system has been started. Thank You.

    KIRAN PINJARLA

    D G T 3 Replies Last reply
    0
    • K Kiran Pinjala

      Is there a way know at what time the system has been shutted down. When the system has been started. Thank You.

      KIRAN PINJARLA

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      kiran.pinjarla wrote:

      When the system has been started.

      One way is via the Win32_OperatingSystem WMI class. GetTickCount() is only good for about 49 days.


      "Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

      "Judge not by the eye but by the heart." - Native American Proverb

      1 Reply Last reply
      0
      • K Kiran Pinjala

        Is there a way know at what time the system has been shutted down. When the system has been started. Thank You.

        KIRAN PINJARLA

        G Offline
        G Offline
        G_S
        wrote on last edited by
        #3

        Start time DWORD GetTickCount(VOID); return the time in mili seconds since the system has been started from that you can calculate the time when it has been started and how long shut down ?

        G_S

        1 Reply Last reply
        0
        • K Kiran Pinjala

          Is there a way know at what time the system has been shutted down. When the system has been started. Thank You.

          KIRAN PINJARLA

          T Offline
          T Offline
          ThatsAlok
          wrote on last edited by
          #4

          kiran.pinjarla wrote:

          s there a way know at what time the system has been shutted down. When the system has been started.

          write a Winlogon notification package!

          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

          cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

          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