ExitWindows library

agraham

Expert
Licensed User
A tiny library, with source for merging, requested by Linecutter that lets you shutdown or reboot your PC. Desktop only but .NET 1.1 and later.
 

Attachments

LineCutter

Active Member
Licensed User
Thanks:sign0188:

I'll start work later tonight (unless the computer keeps shutting down every time I create a bug in the program ;)).
 

LineCutter

Active Member
Licensed User
MyTurn 1.0 beta

As promised, freeware, open source & liable to lock you out of the house for the night if you aren't careful!

The source code, dlls & compiled exes are in the zip. There's even a ReadMe type file.

Make sure that you have an admin account that this is not running in!

I'd be interested in bugs, suggestions for improvements, posting of improved versions & feedback about which assumptions I've made about Vista (in which this probably doesn't work).

If it all goes pear shaped the registry entries are pretty obvious in the source code.

I've updated this a little, so have moved it to "Share your creations"
 
Last edited:

JJM

Active Member
Licensed User
Hello Agraham,
I don't understand how to use ExitWindows on my computer which runs under XP.

For example if i write

Sub Form1_Close
If Msgbox ("Stop ?" Titre, cMsgboxYesNo,cMsgboxQuestion) = cNo Then
Form1.CancelClose
Else
ExitWindows.New1(0)
End If
End Sub

If i use '0' I log off.
If I use '1' or '2' or '5'(1 +4) or '6'(2+4) nothing appends. Why?

Could you help me.

Best regards

JJM
 

agraham

Expert
Licensed User
Probably your program is not running with permission to shut down the computer. It needs to have administrator privileges to do so.
 

JJM

Active Member
Licensed User
Thank you Agraham,

but I don't understand because I am the administrator!!!

Best regards

JJM
 
Top