windows锁屏中,怎么写个程序,实现定时自动解锁,进入桌面。

windows锁屏中,怎么写个程序,实现定时自动解锁,进入桌面。

http://www.docin.com/p-56459468.html

 This function has the same result as pressing Ctrl+Alt+Del and clicking Lock Workstation. To unlock the workstation, the user must log in. There is no function you can call to determine whether the workstation is locked. To receive notification when the user logs in, use the WTSRegisterSessionNotification function to receive WM_WTSSESSION_CHANGE messages. You can use session notifications to track the desktop state so you know whether it is possible to interact with the user.

LockWorkStation()