winexec('rundll32.exe user32.dll, LockWorkStation', sw_hide);

1.shutdown.bat(关机) 
    rundll32.Exe shell32.dll SHExitWindowsEx 1

    2.logoff.bat(注销) 
    rundll32.Exe shell32.dll SHExitWindowsEx 0

    3.reboot.bat(重启) 
    rundll32.Exe shell32.dll SHExitWindowsEx 2

    4.lock.bat(锁定桌面) 
    rundll32.Exe user32.dll LockWorkStation

 procedure TForm1.WndProc(var nMsg: TMessage);
var s:string;
procedure setShow(AShow: Integer);
begin
case AShow of
: Memo1.Lines.Add('无');
: Memo1.Lines.Add('右');
: Memo1.Lines.Add('左');
: Memo1.Lines.Add('下');
: Memo1.Lines.Add('上');
end;
end;
begin
inherited;
if (nMsg.Msg = WM_MOUSEMOVE) then
begin
if (nX < nMsg.LParamLo) then
setShow()
else if (nX > nMsg.LParamLo) then
setShow()
else if (nY < nMsg.LParamHi) then
setShow()
else if (nY > nMsg.LParamHi) then
setShow()
else
setShow();
nX := nMsg.LParamLo;
nY := nMsg.LParamHi;
Label1.Caption := '...';
end;
end;

最新文章

  1. Python多线程爬虫爬取电影天堂资源
  2. REDHAT一总复习1 NTP更改时区,并验证时区设置是否正确
  3. JavaScript随笔1
  4. [日常训练]article
  5. mouse scrollings and zooming operations in linux &amp; windows are opposite
  6. Linux下配置SVN
  7. Mysql-简单安装
  8. [芯片][MPU6050] MPU60X0的DMP相关链接
  9. BZOJ 2820 YY的GCD(莫比乌斯函数)
  10. Microsoft office word关闭英文输入首字母大写设置
  11. The end of other
  12. 《think in python》学习-1
  13. ZF-关于海南的增删改需求
  14. python静态属性的理解
  15. dubbo集群容错解决方案
  16. 树和二叉树-&gt;存储结构
  17. div 光标处插入内容
  18. laravel记录笔记Laravel 连接数据库、操作数据库的三种方式
  19. 给本地服务器配置py文件的下载功能
  20. linux达人养成计划学习笔记(二)—— 文件查找命令

热门文章

  1. opencv 摄像头 线程
  2. ROS学习(八)—— 理解ROS服务和参数
  3. webpack window 使用sass来编译css样式
  4. HTTP 请求头 Header
  5. PowerDesigner之PDM(物理概念模型)各种属性建立如PK,AK等
  6. Objective-C 如何让非等宽的数字和空格对齐
  7. 近期对招聘Android开发者的一些思考
  8. 怎么在eclipse中安装svn插件
  9. HBase随机读写
  10. 用友iuap云运维平台支持基于K8s的微服务架构