我编写了一个更改 Windows 主题的程序,但在更改主题个性化窗口后仍然打开,我想关闭它。我尝试使用具有熟悉进程名称的 process.kill() 但它不起作用。谢谢你。
我正在做的代码如下:
ProcessStartInfo theinfo = new ProcessStartInfo(themepath + "aero.theme");
theinfo.CreateNoWindow = true;
Process thepr = new Process();
thepr.StartInfo = theinfo;
thepr.Start();
其中“themepath”是 aero.theme 的字符串位置。我什至将 CreateNoWindow 启用为 true,然后它也打开了个性化以更改主题,但没有自动关闭它。