VB.NET 阻止 .exe 启动
有人有如何阻止 .exe 文件启动的示例代码吗?
像这样的东西可能会起作用:
For Each OSKInstance As Process In Process.GetProcessesByName("OSK").ToArray
OSKInstance.Kill()
Next
但这可能是资源密集型的,因为 while 循环一直在运行。有没有更智能的方法来锁定 .exe?
does someone have an example code for how to prevent .exe files to be started?
Something like this might work:
For Each OSKInstance As Process In Process.GetProcessesByName("OSK").ToArray
OSKInstance.Kill()
Next
But that might be resource intense as a while loop is running all the time. Is there a smarter way to lock an .exe?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
找到了代码:
Found the code: