// I simulate CtrAltDel by posting a WM_HOTKEY message to all // the windows on the Winlogon desktop. // This requires that the current thread is part of the Winlogon desktop. // But the current thread has hooks set & a window open, so it can't // switch desktops, so I instead spawn a new thread & let that do the work... hDesk = OpenDesktop("Winlogon"); SetThreadDesktop(); PostMessage(HWND_BROADCAST, WM_HOTKEY, 0, MAKELONG(MOD_ALT | MOD_CONTROL, VK_DELETE));--- 摘自WINVNC可以在服务里面创建一个进程(有/无界面),然后由此进程创建一个线程解决;或者...(方法知道了,解决手段就很多,自己可以想想).
不好意思,本人对hook编程不是太了解,而http://www.vckbase.com/document/viewdoc.asp?id=424中提到的似乎是屏蔽掉三键组合的方法。
我想要的是发送一个三键组合的消息来 解除 windows的锁定
可是它是怎么做到的?
参数有何不同? 为何安装不上?
-->OpenDesktop()--->SetThreadDesktop()--->PostMessage()
你自己查资料吧!
// the windows on the Winlogon desktop.
// This requires that the current thread is part of the Winlogon desktop.
// But the current thread has hooks set & a window open, so it can't
// switch desktops, so I instead spawn a new thread & let that do the work...
hDesk = OpenDesktop("Winlogon");
SetThreadDesktop();
PostMessage(HWND_BROADCAST, WM_HOTKEY, 0, MAKELONG(MOD_ALT | MOD_CONTROL, VK_DELETE));--- 摘自WINVNC可以在服务里面创建一个进程(有/无界面),然后由此进程创建一个线程解决;或者...(方法知道了,解决手段就很多,自己可以想想).
http://expert.csdn.net/Expert/topic/1772/1772952.xml?temp=3.124636E-02接分。