Hooking into the application launch

Hey guys,

How would I go about hooking into the launch of the game? To load a configuration file or perform some DRM style checks.