flat assembler
Message board for the users of flat assembler.

Index > Windows > Shutdown Button???

Author
Thread Post new topic Reply to topic
lilljocke



Joined: 28 Dec 2004
Posts: 34
Location: Sweden
lilljocke
Hi i have coded a program that can lock the computer (WIN98). i Use it in school but as you can understand some people doesn't care about my locker program and just restart the computer so i wonder if anyone knows how to turn off the shutdown button in Windows 98. My School use NetWare Novell as login client. The computer restore it self with a Security card so it will be the same every time i turn on the computer. Is there anyway to turn the security Card off ?? or make Novell Help me ???[/quote]
Post 27 Mar 2006, 10:25
View user's profile Send private message Visit poster's website Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2141
Location: Estonia
Madis731
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- Very Happy plug out the power-cord.

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 Sad
Post 27 Mar 2006, 13:29
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
maybe somehow block/remove executing system32\shutdown.exe?
Post 27 Mar 2006, 13:32
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
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.
Post 27 Mar 2006, 13:58
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
you can also make your locker write itself to Run in registry, so it will run anyway. This could keep off less experienced guys
Post 27 Mar 2006, 14:03
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
lilljocke



Joined: 28 Dec 2004
Posts: 34
Location: Sweden
lilljocke
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 Sad
Post 27 Mar 2006, 16:14
View user's profile Send private message Visit poster's website Reply with quote
Vasilev Vjacheslav



Joined: 11 Aug 2004
Posts: 392
Vasilev Vjacheslav
what about patching ExitWindows in user32.dll?
Post 28 Mar 2006, 05:24
View user's profile Send private message Reply with quote
UCM



Joined: 25 Feb 2005
Posts: 285
Location: Canada
UCM
vasilev: probably not a good idea, it's a school computer

_________________
This calls for... Ultra CRUNCHY Man!
Ta da!! *crunch*
Post 28 Mar 2006, 22:17
View user's profile Send private message Reply with quote
RobotBob



Joined: 18 Jun 2003
Posts: 12
Location: USA
RobotBob
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.
Post 29 Mar 2006, 05:08
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.