Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 7 of 7

Thread: stop a reboot

  1. #1
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863

    stop a reboot

    At a critical stage in a program, I want the program to prevent a shutdown; I know vmware can do this -- and I've seen others.

    how do they respond to a "system shutdown has been initiated" and then how do they respond such that they stop it?

    Thanks.
    -josh


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  2. #2
    Join Date
    May 2005
    Posts
    1,115
    You can use command shutdown /a to abort the shutdown process (only when you can see the message that the system is shutting down in x seconds).
    Never know what life is gonna throw at you.
    (Based on a true story.)

  3. #3
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Thanks -- but I need to know to respond that a system shutdown has been requested...

    There is a message that is sent out "System shutting down" and (as I understand it) a program can respond "Critical, do not shutdown" and the proces is halted.


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  4. #4
    Join Date
    Dec 2003
    Location
    The Netherlands
    Posts
    475

    Shutdown.dll

    Quote Originally Posted by jassing View Post
    Thanks -- but I need to know to respond that a system shutdown has been requested...

    There is a message that is sent out "System shutting down" and (as I understand it) a program can respond "Critical, do not shutdown" and the proces is halted.
    http://www.indigorose.com/forums/sho...815#post129815

    With Kind Regards
    sside

  5. #5
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Thanks. however, I can't rely on .net being there.... but that let's me know it can be done by 3rd party dll... any idea what the api is that is called?


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  6. #6
    Join Date
    Dec 2003
    Location
    The Netherlands
    Posts
    475
    Quote Originally Posted by jassing View Post
    Thanks. however, I can't rely on .net being there.... but that let's me know it can be done by 3rd party dll... any idea what the api is that is called?
    http://msdn.microsoft.com/en-us/libr...90(VS.85).aspx

    With Kind Regards
    sside

  7. #7
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Thank you -- exactly what I was looking for.

    -josh


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

Similar Threads

  1. restart after reboot (from AMS help) flagged by Windows Defender
    By kcfischer in forum AutoPlay Media Studio 6.0
    Replies: 0
    Last Post: 07-16-2007, 09:14 PM
  2. Setup Factory and VS 2005
    By vazir786 in forum Setup Factory 7.0
    Replies: 4
    Last Post: 01-13-2006, 08:47 PM
  3. button play and stop
    By white sky in forum AutoPlay Media Studio 5.0
    Replies: 11
    Last Post: 10-25-2005, 04:41 PM
  4. Quick Tip: 'Pending Reboot Operations'
    By SUF6NEWBIE in forum AutoPlay Media Studio 5.0
    Replies: 0
    Last Post: 08-20-2004, 03:22 PM
  5. Forced reboot option?
    By OTSER in forum Setup Factory 6.0
    Replies: 2
    Last Post: 11-14-2000, 09:12 PM

Posting Permissions

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