win7下Process.GetCurrentProcess().Kill();能夠直接殺死當前進程。對象
可是在XP下 必須先定義一個進程對象。進程
Process pr = Process.GetCurrentProcess(); pr.Kill();
無語的XP 。