ExitWindows library

Discussion in 'Additional Libraries' started by agraham, Oct 16, 2008.

  1. agraham

    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.
     

    Attached Files:

  2. LineCutter

    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 ;)).
     
  3. LineCutter

    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: Nov 4, 2008
  4. JJM

    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
     
  5. agraham

    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.
     
  6. JJM

    JJM Active Member Licensed User

    Thank you Agraham,

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

    Best regards

    JJM
     
  7. agraham

    agraham Expert Licensed User

    I'm sorry, but in that case I don't understand either!
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice