Results 1 to 3 of 3

Thread: Service runs when computer 'wakes up' from StandBy

  1. #1

    Thread Starter
    Member
    Join Date
    May 2002
    Posts
    35

    Question Service runs when computer 'wakes up' from StandBy

    I'll keep this really simple: I would like to write a Visual Basic program, probably needs to be a service, that will do something when the computer 'wakes up' from having been in StandBy mode. Would you please point me to some guidance for this.

    If the guidance also has a way to test the program without requiring the computer to go into/come out of StandBy mode, that would be great (and a huge time saver).

  2. #2
    Fanatic Member 2kaud's Avatar
    Join Date
    May 2014
    Location
    England
    Posts
    706

    Re: Service runs when computer 'wakes up' from StandBy

    You might find this article of interest https://sumtips.com/how-to/run-progr...eep-hibernate/
    All advice is offered in good faith only. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/

    C++20 Compiler: Microsoft VS2019 (16.10.0)

  3. #3
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    106,895

    Re: Service runs when computer 'wakes up' from StandBy

    If you do want to create a service then you might check this out:

    https://docs.microsoft.com/en-au/dot...tframework-4.8

    You can test the code that gets executed on the event any way you like, but you can never test that it will actually handle the specific event you want without raising that event.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width