Hi,
My guess is you need to develop a windows service and there you may use the
"ExitWindows" fuction to detect the windows exit and through the service you
can invoke the application.
Public Declare Function ExitWindows Lib "user32" Alias "ExitWindows" (ByVal
dwReserved As Long, ByVal uReturnCode As Long) As Long
Nirosh.
"Jesper DK" <je****@hotmail.com> wrote in message
news:01****************************@phx.gbl...
Hi,
I would like a program invoked when the computer is shut
down or a user logs off. Is there a fix way of doing
this. I uses the startup folder to run the program, but I
need to run it when the computer shuts down as well.
best regards and thanks
Jesper