can i detect when windows starts up and shuts down???
Printable View
can i detect when windows starts up and shuts down???
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
:D
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
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.]
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?
LOL, Go ahead! I liked you conversation with the computer
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&$%£"()*&$]
Don't say that, you're my friend Very Basic
When the windows shutdown was deteced, can i abort it???!!!
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