#include <Windows.h>
#pragma comment(linker,"/subsystem:\"Windows\" /entry:\"main\"")
int main()
{
while (true)
{
if ((GetAsyncKeyState(VK_LWIN) & 0x8000) && (GetAsyncKeyState('O') & 0x8000))
{
LockWorkStation();
Sleep(30);
::PostMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, 2);
}
Sleep(10);
}
return 0;
}
如果文章或资源对您有帮助,欢迎打赏作者。一路走来,感谢有您!
txttool.com 说一段 esp56物联 查询128 IP查询