怎么实现 CTRL+ALT+del中的"锁定计算机"功能?

sea_way 2003-08-24 06:53:59
怎么实现 CTRL+ALT+del中的"锁定计算机"功能?
就是保持当前操作.但要求输入用户登陆口令的那个.
谢谢
...全文
142 22 打赏 收藏 转发到动态 举报
写回复
用AI写文章
22 条回复
切换为时间正序
请发表友善的回复…
发表回复
vickly 2003-10-15
  • 打赏
  • 举报
回复
关注!!
DY2003 2003-10-14
  • 打赏
  • 举报
回复
不懂,帮你顶!
lxhong1980 2003-10-14
  • 打赏
  • 举报
回复
帮你顶
vickly 2003-10-14
  • 打赏
  • 举报
回复
在win98中怎么锁定呢?
findcsdn 2003-10-14
  • 打赏
  • 举报
回复
可以写一个窗体放在所有窗体的前面,并且处理所有键盘和鼠标的消息。
只有正确输入密码后才取消掉这个窗体。
kaolaxiong 2003-10-14
  • 打赏
  • 举报
回复
UP
空中居士 2003-09-21
  • 打赏
  • 举报
回复
不懂,帮你顶
  • 打赏
  • 举报
回复
这个函数
  • 打赏
  • 举报
回复
LockWorkStation
[This is preliminary documentation and subject to change.]

The LockWorkStation function locks the workstation's display, protecting it from unauthorized use.

BOOL LockWorkStation(VOID);

Parameters
This function has no parameters.

Return Values
If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, callGetLastError.

Remarks
This function has the same result as pressing Ctrl+Alt+Del and clicking Lock Workstation. To unlock the workstation, the user must log in.

Common reasons for failure include no user is logged on, the workstation is already locked, the process is not running on the interactive desktop, or the request is denied by the Graphical Identification and Authentication (GINA) DLL.

QuickInfo
Windows NT: Requires version 5.0 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in winuser.h.
Import Library: Use user32.lib
sea_way 2003-09-21
  • 打赏
  • 举报
回复
晕.能楼上的能不能说具体点.
guge 2003-09-21
  • 打赏
  • 举报
回复
能过调用函数exitwindowsex或者exitwindows,都能实现锁住计算机的功能,
具体我也不会帮你顶一下
johnnyqiu 2003-09-19
  • 打赏
  • 举报
回复
捕捉

VK_CONTROL
VK_MENU
VK_DELETE
wwle 2003-09-19
  • 打赏
  • 举报
回复
up
shanlin 2003-09-19
  • 打赏
  • 举报
回复
是不是可以模拟发键盘消息呢
sea_way 2003-09-19
  • 打赏
  • 举报
回复
楼上的方法不行.
lw549 2003-09-16
  • 打赏
  • 举报
回复
PostMessage( HWND_BROADCAST, WM_SYSCOMMAND, SC_SCREENSAVE, 0);
lw549 2003-09-16
  • 打赏
  • 举报
回复
我写过屏幕保护的小函数
在win2k下能满足的要求
98下不可以。
sea_way 2003-09-16
  • 打赏
  • 举报
回复
我再顶一下.再没人会 就只好散分了.
sea_way 2003-08-26
  • 打赏
  • 举报
回复
这个不合适啊
karach 2003-08-24
  • 打赏
  • 举报
回复
http://www.csdn.net/develop/article/15/15645.shtm
去看看
加载更多回复(2)

5,388

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧