delphcon5
asked on
Creating threads
Hello, what is a good way to make a function or procedure run after your program has been closed?
From the program itself or from outside?
ASKER
from the program, or from outside like making a dll file, anything would work, can you inject a dll into a process like explorer?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Is that two ways to do it?
ASKER
Nevermind i got it.
2) in Application.OnTerminate
3) catch WM_QUERYENDSESSION and WM_ENDSESSION for shudown/restart