How to issue shutdown from within a driver

I have a device driver that gets an interrupt when an external power supply is shutting down. While servicing that interrupt I need to shutdown the system as quickly as possible.
How can this be done???

Pat

Shutdown needs to be done from user space. Any shutdown mechanism from the
kernel has the problem, that the user and the applications are not informed
of the failure so cannot shutdown cleanly. Consider using a service
notified by the driver, which then uses the standard API’s for shutdown from
user space.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
http://www.windrvr.com
Remove StopSpam from the email to reply

wrote in message news:xxxxx@ntdev…
>I have a device driver that gets an interrupt when an external power supply
>is shutting down. While servicing that interrupt I need to shutdown the
>system as quickly as possible.
> How can this be done???
>
> Pat
>

Design your device as a battery and use the standard OS features used by
laptops.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From:
To: “Windows System Software Devs Interest List”
Sent: Friday, September 08, 2006 6:17 PM
Subject: [ntdev] How to issue shutdown from within a driver

> I have a device driver that gets an interrupt when an external power supply
is shutting down. While servicing that interrupt I need to shutdown the system
as quickly as possible.
> How can this be done???
>
> Pat
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer