Min Logon with ACPI features

S

Slobodan Brcin

What ACPI features are missing?

Only thing I noticed is that minlogon does not handle power button.
You must make app that will handle this case. You can find how to do it by
searching this news group.

Regards,
Slobodan
 
R

Rafael de Góes

Hi,

I'm trying to use Minlogon together with the ACPI features, mainly to
shutdown the system but for me it works only with windows logon... what
component do I need to include ? Or do I need to modify any
registry settings to achieve that ?

Regards
Rafael de Góes
eSysTech - Brazil
 
R

Rafael de Góes

Thanx for your reply.

The missing feature is exactly the power buttom event.I've serched in the
web based newsgroup archive (ACPI, MInlogon, etc..) but couldn't find
anything, any gess or shortcut that mentions such application ?

Regards
Rafael
 
S

Slobodan Brcin

Hi,

I guess that I'm the only one crazy enough to try to fix things like this ;)

http://groups.google.com/groups?q=Power+Button+group:microsoft.public.window
sxp.embedded.*+group:microsoft.public.windowsxp.embedded.*+group:microsoft.p
ublic.windowsxp.embedded.*&start=10&hl=en&lr=&ie=UTF-8&oe=UTF-8&group=micros
oft.public.windowsxp.embedded.*&scoring=d&selm=e%24tvUMZZDHA.2476%40tk2msftn
gp13.phx.gbl&rnum=13

Also for more info follow the link that search kernel NG and read top thread
of the search.

Regards,
Slobodan
 
S

Slobodan Brcin

Have you tried API call NtShutdownSystem ? It should be able to shutdown
system immediately.

I haven't seen BIOS that let you powerdown when you press power button. (You
need to hold it for more than 3 seconds).
But you will need to try your BIOS.

Regards,
Slobodan
 
R

Rafael de Góes

Thank You Very Much for the support,
I've include a handler for this message (WM_POWERBROADCAST) in my shell app
and it works fine.
But such aproach takes a while until the system shuts down.
I was wondering about using the power buttom to turn off the Power Supply
directly.
For me there is no problem since I'm using EWF..

To achieve that, is it possible to use a non ACPI configuration and leave
the Power Buttom handling to the BIOS
to instant off the system ?
 
K

KM

Rafael,

You may use InitiateSystemShutdown API to perform a graceful shutdown.
However, it will take a while for your anyway.

Thre is undocumentated API from ntdll.dll - NtShutdownSystem that won't
flush system changes on disk. You can get working code from here:
http://www.codeblast.com/~gert/cpp/Reset.cpp.html.
I've also seen on Internet and tried an utility that was shutting down XP
Pro less in a second. I lost the link but I believe the app was using
NtShutdownSystem internally.

KM
 
K

KM

You may have already started writing your own app but I just ran accross
related sources on my disk.
I attached a zip file with a source cpp and compiled exe of the utility. The
app have implementations for a few different ways to shutdown system -
ZwShutdownSystem, InitiateSystemShutdown, ExitWindowsEx (you may try them
all). Just run ShutWin.exe on your device to test the fastest one -
ZwShutdownSystem.
On XP Pro a call to NtShutdownSystem/ZwShutdownSystem works great - less
than a second.

Something similar is also here:
http://bugtraq.ru/library/internals/.keep/shut.cpp.txt

Good luck!
KM,
BSquare Corp.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top