Your question is to get notification while the process is getting loaded and unloaded. This is more applicable for DLLs as they are getting loaded by other processes.
For Exes, you have InitInstance and ExitInstance which you can handle equivalently!