Results 1 to 10 of 10

Thread: windows startup & shutdown

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 1999
    Location
    Sweden
    Posts
    7

    Question

    can i detect when windows starts up and shuts down???

    /Elias Johansson

  2. #2
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516
    Erm... I don't know what you're wanting this for.

    If you gave us a little background it would help.

    Sorry to be picky,

    Me

    Courgettes.

  3. #3
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221

    Wink

    Put your app to run in autorun folder and in the load event you have the windows startup things and in querry unload event put it detects windows exit if unloadmode=vbAppWindows
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  4. #4
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516

    Red face

    Yeah. What he said.

    [V(ery) Basic: That was quite embarrassing]
    [Computer: Yeah. It was.]
    [V(ery) Basic: I'll go to another forum.]
    [Computer: That's probably best.]


    Courgettes.

  5. #5
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516
    I think I should change my signature to:

    'I am the most under-rated person since Judas Iscariot won the
    AD31 best disciple competition'



    What do you guys think?
    Courgettes.

  6. #6
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    LOL, Go ahead! I liked you conversation with the computer
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  7. #7
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516
    Nobody likes me



    I'm going to keep the signature because it woudn't make sense if I
    changed it.

    [Computer: It doesn't make sense as it is]
    [V(ery) Basic: Oh shut up]
    [Computer: Deleting win386.swp...]
    [V(ery) Basic: Nooooooo&$%£"()*&$]
    Courgettes.

  8. #8
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Don't say that, you're my friend Very Basic
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  9. #9
    New Member
    Join Date
    May 2000
    Location
    canada
    Posts
    1

    Exclamation Abort windows shutdown

    When the windows shutdown was deteced, can i abort it???!!!
    Simon Guan

  10. #10
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Haven't tested it, but i give you this for you to try
    Code:
    Declare Function AbortSystemShutdown Lib "advapi32.dll" Alias "AbortSystemShutdownA" (ByVal lpMachineName As String) As Long
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width