Page 5 of 5 FirstFirst 12345
Results 41 to 42 of 42

Thread: RR 04-01-05 ... Finishing touch ...

  1. #41
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    Quote Originally Posted by Arathranar
    It looks like you need to add a window sub class for your main form/window so that you can handle the WM_POWERBROADCAST windows message. A wParam of PBT_APMSUSPEND should trigger the shut down operations you current have in your hibernate action and PBT_APMRESUMESUSPEND should trigger the re-initialize from your hibernate action. The hibernate action should then just become the one line to trigger the hibernate. Everything else should happen automatically off the windows messages.
    I'll look into it, but I really don't trust this.. A lot of times windows will SHUTDOWN RR without even letting it completely finish it's exit routine propperly. If it uses sendmessage to send the WM_POWERBROADCAST it may work, if uses POSTmessage I'm pretty sure it will barely give me any time at all to process the shutdown (I need enough time to Clomse COM ports, stop winamp and save resume info)..
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  2. #42
    FLAC
    Join Date
    Sep 2004
    Posts
    1,577
    Quote Originally Posted by guino
    I'll look into it, but I really don't trust this.. A lot of times windows will SHUTDOWN RR without even letting it completely finish it's exit routine propperly. If it uses sendmessage to send the WM_POWERBROADCAST it may work, if uses POSTmessage I'm pretty sure it will barely give me any time at all to process the shutdown (I need enough time to Clomse COM ports, stop winamp and save resume info)..
    You get approximately 20 seconds to complete your hibernation preparations. That's plenty of time for what RR needs to do.

    Edit: If you don't use this mechanism then you get basically no guarantee of time.
    Progress: 80% - Permanent install left.
    Motion LS800 Tablet PC and dock.
    Vista, Bu-535 GPS, RoadRunner, MPT2006.

Page 5 of 5 FirstFirst 12345

Similar Threads

  1. any feedback info. on Dynamix 7" VGA Touch Screen TFT ???
    By xtreamvette in forum LCD/Display
    Replies: 29
    Last Post: 04-22-2007, 03:19 PM
  2. Replies: 97
    Last Post: 09-18-2006, 01:56 PM
  3. What TV tuners ?
    By tolisn in forum Road Runner
    Replies: 36
    Last Post: 03-31-2005, 02:23 PM
  4. AutoTap ODB-2 cable...
    By coleman in forum Engine Management, OBD-II, Engine Diagnostics, etc.
    Replies: 18
    Last Post: 11-28-2004, 11:13 PM
  5. GROUP BUY: Lilliput TM-701VGT LCD
    By krystar in forum Classified Archive
    Replies: 236
    Last Post: 01-16-2004, 06:31 PM

Bookmarks

Posting Permissions

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