Re: How to reboot the computer on the driver???
- From: "Don Burn" <burn@xxxxxxxxxxxxxxxx>
- Date: Sun, 25 Sep 2005 12:57:54 -0400
Use a service to do this, at least then a shutdown message will go to the
applications. You will be using documented calls, the kernel only
approaches I am aware of go raw the the hardware, or use undocumented stuff,
in any case they just kill off the userspace stuff with no warnings or
ability for an application to shut down.
I guess I'm trying to understand how a user can use the hardware
"illegally"?
--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply
"Baker" <Baker@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9B99F67F-CDB7-4F76-B255-82B950BF5600@xxxxxxxxxxxxxxxx
> Sorry...maybe I didn't explained the problem in detail.
> I just want to check some information related a private hardware in my own
> driver.
> So if a user use the hardware illegally, the driver must make the system
> reboot anyhow. However, that's just our requirement, and I just want to
> know
> that is any possible to reboot the computer in the driver????
>
> Thanks for your reply ^_^
>
> "Don Burn" wrote:
>
>> No, this is one of the really stupid ideas. So your driver doesn't
>> start,
>> in the kernel you want to reboot, potentailly blowing away the users work
>> on
>> a desktop, and perhaps a whole database on a server? Log the problem to
>> the
>> event log and move on.
>>
>>
>> --
>> Don Burn (MVP, Windows DDK)
>> Windows 2k/XP/2k3 Filesystem and Driver Consulting
>> Remove StopSpam from the email to reply
>>
>>
>>
>> "Baker" <Baker@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:C1C087DA-FC56-4906-BDF0-3D35EBF06BA8@xxxxxxxxxxxxxxxx
>> > Dear all,
>> >
>> > I'd like to reboot the machine when my own driver cannot be activated
>> > normally.
>> > Is there any API of kernel mode to do this or other methods I can do
>> > for
>> > this???
>> >
>> > Thanks
>>
>>
>>
.
- References:
- Re: How to reboot the computer on the driver???
- From: Don Burn
- Re: How to reboot the computer on the driver???
- Prev by Date: Re: Help! How to map kernel-mode virtual address to user mode address
- Next by Date: Re: Usb stack and STATUS_TIMEOUT by KeWaitForSingleObject - IRP hang
- Previous by thread: Re: How to reboot the computer on the driver???
- Next by thread: Re: How to reboot the computer on the driver???
- Index(es):
Relevant Pages
|
|