flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Madis731 27 Mar 2006, 13:29
No non-server class computer has it, I think. There is no protection against restarts even on NT machines, because you can always hit the power/restart button -OR-
![]() Then you can log in with your own account. I can suggest you maybe look at the shutdown API and catch that behaviour. Maybe then you can intervene and stop the shutdown process. I haven't got any other good ideas ![]() |
|||
![]() |
|
vid 27 Mar 2006, 13:32
maybe somehow block/remove executing system32\shutdown.exe?
|
|||
![]() |
|
LocoDelAssembly 27 Mar 2006, 13:58
There is an API function for that, AbortSystemShutdown. However keeping pressed the shutdown button for 3 seconds on an ATX computer is enough to turn it off.
|
|||
![]() |
|
vid 27 Mar 2006, 14:03
you can also make your locker write itself to Run in registry, so it will run anyway. This could keep off less experienced guys
|
|||
![]() |
|
lilljocke 27 Mar 2006, 16:14
I Can not run AbortSystemShutdown and use system32\shutdown.exe? becouse it is a 9x System. and i cna not do anything to the registry becouse it will restore when the computer is restared
![]() |
|||
![]() |
|
Vasilev Vjacheslav 28 Mar 2006, 05:24
what about patching ExitWindows in user32.dll?
|
|||
![]() |
|
UCM 28 Mar 2006, 22:17
vasilev: probably not a good idea, it's a school computer
_________________ This calls for... Ultra CRUNCHY Man! Ta da!! *crunch* |
|||
![]() |
|
RobotBob 29 Mar 2006, 05:08
Why not:
Quote: The WM_QUERYENDSESSION message is sent when the user chooses to end the Windows session or when an application calls the ExitWindows function. If any application returns zero, the Windows session is not ended. I have used this in the past. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.