I have a program developed in delphi 7 and I want to activate the program when the user select the option shutdown or restart?