W wmyao Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-12 #1 Sleep已经可以屏蔽了 我用了低层钩子,只能屏蔽Sleep键,WakeUp、Power键无效。
晨 晨晨 Unregistered / Unconfirmed GUEST, unregistred user! 2002-12-12 #7 98下可以锁键盘,可2000下如果低级键盘钩子也不行那我就没折了!
C Cardinal Unregistered / Unconfirmed GUEST, unregistred user! 2003-04-14 #8 gz 我以前也想过 就是按了键以后给 对话框提示
W wmyao Unregistered / Unconfirmed GUEST, unregistred user! 2003-05-03 #11 //定义事件 procedure WMPowerBroadcast(var message: TMessage); message WM_POWERBROADCAST; procedure TfrmMain.WMPowerBroadcast(var message: TMessage); begin //屏蔽Wake Up,Sleep,Power键 message.Result := BROADCAST_QUERY_DENY; end;
//定义事件 procedure WMPowerBroadcast(var message: TMessage); message WM_POWERBROADCAST; procedure TfrmMain.WMPowerBroadcast(var message: TMessage); begin //屏蔽Wake Up,Sleep,Power键 message.Result := BROADCAST_QUERY_DENY; end;
P panzhileidfw Unregistered / Unconfirmed GUEST, unregistred user! 2003-05-04 #18 这个问题还用编程吗? 把电源管理-》高级-》按下计算机关闭按钮 改为 问我要做什么 就行了