create a dll, putting the name of the DLL in the registry key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Windows\AppInit_DLLs. when the desired program starts, also start your own program.you can refer to PsSetCreateProcessNotifyRoutineand there is IShellExecuteHook that can do this too.for IE, there is an additional method, create a BHO http://www.csdn.net/Expert/TopicView1.asp?id=689265
非常简单,不管是别人的还是你的!
加在InI中也行,