WINFORM 启动隐藏桌面

一、消灭桌面进程

1. API

[DllImport("kernel32.dll")]
public static extern int WinExec(string exeName, int operType);


private void killProcess()
{
WinExec("taskkill.exe /im " + explorer + ".exe /f /t", 0);
}

2. Kill Explorer.EXE,由于一些原因kill之后可能重启。

二、附加功能,自动启动

在启动中放入希望启动程序快捷方式,完成专用机的功能。

posted @ 2017-09-05 09:48  sunlyk  阅读(227)  评论(0编辑  收藏  举报