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. Visual Basic
  4. System Events

System Events

Scheduled Pinned Locked Moved Visual Basic
question
3 Posts 2 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.
  • M Offline
    M Offline
    mikasa
    wrote on last edited by
    #1

    Ok, does anyone know where I can begin to look for examples of some certain system events that occur on a PC. I need to know the following: 1.) Computer LogOn / Bootup Event 2.) Computer LogOff / Shutdown Event 3.) Computer Idle / Sleep / Awake Events 4.) Screensaver activate / deactivate events I know there is a way to hook the System to receive the Idle event, but can anyone point me in the right direction for some of the other events? Maybe using WMI is an option?

    A 1 Reply Last reply
    0
    • M mikasa

      Ok, does anyone know where I can begin to look for examples of some certain system events that occur on a PC. I need to know the following: 1.) Computer LogOn / Bootup Event 2.) Computer LogOff / Shutdown Event 3.) Computer Idle / Sleep / Awake Events 4.) Screensaver activate / deactivate events I know there is a way to hook the System to receive the Idle event, but can anyone point me in the right direction for some of the other events? Maybe using WMI is an option?

      A Offline
      A Offline
      Anonymous
      wrote on last edited by
      #2

      You might want to start here:

      http://msdn.microsoft.com/library/default.asp?url=/library/en-us/security/security/event_handler_function_prototype.asp[^]

      What you ask is not easily done because of the events your asking for. Are your writing a service, a user app, or what?

      M 1 Reply Last reply
      0
      • A Anonymous

        You might want to start here:

        http://msdn.microsoft.com/library/default.asp?url=/library/en-us/security/security/event_handler_function_prototype.asp[^]

        What you ask is not easily done because of the events your asking for. Are your writing a service, a user app, or what?

        M Offline
        M Offline
        mikasa
        wrote on last edited by
        #3

        Actually, it doesn't matter what kind of app...whatever way is the best to implement it...I don't really care about the "easy" factor of programming. ;P I'll check out the link.

        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