How can I run a program every time that the user logoff of windows?

Or login ?

Abraçunda!