I want to run some procedure (say print my name in a message Box) whenever I logout or shutdown my computer.(ie . I want to hook the windows service and run my routine and then run the windows service).
I dont know if I use proper term (Hooking).But I think U understand my question.
Please answer to my question.