how to enable/disable the system searching option thru c# program
如何通过c#程序启用/禁用系统搜索选项
yes i want enable/disable (Start->Search) option. already i have disable it thru program i don't know how to enable it..
是的我想启用/禁用(开始 - >搜索)选项。我已经通过程序禁用它我不知道如何启用它..
1 个解决方案
#1
Maybe you should instanciate a ServiceController and stop/start it
也许你应该实现一个ServiceController并停止/启动它
ServiceController myService = new ServiceController("WSearch");
...
myService.Stop();
...
myService.Start();
#1
Maybe you should instanciate a ServiceController and stop/start it
也许你应该实现一个ServiceController并停止/启动它
ServiceController myService = new ServiceController("WSearch");
...
myService.Stop();
...
myService.Start();