这是我的项目的一部分,我的项目基本上是使用运动传感器来检测任何入侵。因此,其中一个模块是在检测到入侵者时锁定PC。有没有办法使用Visual Basic锁定PC?
(因为大多数其他模块都是用Visual Basic编写的。)我基本上是寻找源代码,可以实现类似于"Windows按钮+ L“的东西。
发布于 2010-05-16 03:47:12
一种简单的方法是:
Set shell = WScript.CreateObject("WScript.Shell")
shell.Run "rundll32 user32.dll,LockWorkStation"https://stackoverflow.com/questions/2841519
复制相似问题