delphi监控windows远程控制消息
来源:互联网 发布:linux运维工程师工资 编辑:程序博客网 时间:2024/05/16 11:08
procedure TMainFrm.AppMessage(var Msg: TMSG; var HAndled: Boolean);
var
strReason: string;
begin
Handled := False;
case Msg.Message of
WM_WTSSESSION_CHANGE :
begin
case Msg.wParam of
WTS_CONSOLE_CONNECT:
strReason := 'WTS_CONSOLE_CONNECT';
WTS_CONSOLE_DISCONNECT:
strReason := 'WTS_CONSOLE_DISCONNECT';
WTS_REMOTE_CONNECT:
strReason := 'WTS_REMOTE_CONNECT';
WTS_REMOTE_DISCONNECT:
strReason := 'WTS_REMOTE_DISCONNECT';
WTS_SESSION_LOGON:
strReason := 'WTS_SESSION_LOGON';
WTS_SESSION_LOGOFF:
strReason := 'WTS_SESSION_LOGOFF';
WTS_SESSION_LOCK:
strReason := 'WTS_SESSION_LOCK'; // 用户锁屏
WTS_SESSION_UNLOCK:
strReason := 'WTS_SESSION_UNLOCK'; // 用户解锁
WTS_SESSION_REMOTE_CONTROL:
begin
strReason := 'WTS_SESSION_REMOTE_CONTROL'; // 远程控制
// GetSystemMetrics(SM_REMOTECONTROL);
end;
else
strReason := 'WTS_Unknown';
end;
end;
end;
end;
var
strReason: string;
begin
Handled := False;
case Msg.Message of
WM_WTSSESSION_CHANGE :
begin
case Msg.wParam of
WTS_CONSOLE_CONNECT:
strReason := 'WTS_CONSOLE_CONNECT';
WTS_CONSOLE_DISCONNECT:
strReason := 'WTS_CONSOLE_DISCONNECT';
WTS_REMOTE_CONNECT:
strReason := 'WTS_REMOTE_CONNECT';
WTS_REMOTE_DISCONNECT:
strReason := 'WTS_REMOTE_DISCONNECT';
WTS_SESSION_LOGON:
strReason := 'WTS_SESSION_LOGON';
WTS_SESSION_LOGOFF:
strReason := 'WTS_SESSION_LOGOFF';
WTS_SESSION_LOCK:
strReason := 'WTS_SESSION_LOCK'; // 用户锁屏
WTS_SESSION_UNLOCK:
strReason := 'WTS_SESSION_UNLOCK'; // 用户解锁
WTS_SESSION_REMOTE_CONTROL:
begin
strReason := 'WTS_SESSION_REMOTE_CONTROL'; // 远程控制
// GetSystemMetrics(SM_REMOTECONTROL);
end;
else
strReason := 'WTS_Unknown';
end;
end;
end;
end;
阅读全文
0 0
- delphi监控windows远程控制消息
- 使用Windows消息控制Winamp(Delphi)
- 使用Windows消息控制Winamp(Delphi)
- delphi 远程控制《1》
- Delphi处理Windows消息
- 转delphi windows 消息
- Delphi Windows 消息 1
- Delphi Windows消息 2
- [delphi] windows消息
- Delphi 远程控制(1)
- 远程控制 远程监控软件屏幕实用技巧
- windows远程控制linux
- Windows远程控制RHEL6
- Windows远程控制
- windows远程控制ubuntu
- windows远程控制服务器
- Windows远程控制Linux
- Spotlight on Windows监控远程监控条件
- 神奇的MySql连接错误
- oracle中rownum和row_number()的区别
- 深浅拷贝
- c++设计模式之单例模式
- Nginx的安装
- delphi监控windows远程控制消息
- 为什么读了很多书,却学不到什么东西?
- #Thinking in Java阅读笔记# 第五章 初始化与清理
- C++ STL 之 lower_bound and upper_bound
- MVp
- MySQL 性能优化技巧
- 重温基数排序
- MySQL的or/in/union与索引优化
- 文章标题