设为首页  
联系我们  
加入收藏  
网页制作 冲浪宝典 图形图像 操作系统 软件教学 编程开发 认证考试 安全技术 站长专区 文学驿站 娱乐天地 游戏天地 办公软件
文章搜索
您的位置: 首页 >> 文章首页 >> 编程开发 >> Delphi >> 用delphi实现冰河的远程屏幕操作功能
精品推荐
Delphi点击TOP10
·Delphi2005可以下载了
·用Delphi实现整个网站图片的极速下载
·制作QQ消息炸弹
·TextFile读写
·首次发布Delphi7汉化帮助
·用delphi实现冰河的远程屏幕操作功能
·Delphi的优点
·systemparametersinfo详细用法
·Delphi 6 IDE的运行时抓图及简介
·delphi实现批量缩略图生成工具开发代码
编程开发点击TOP10
·ASP.NET 程序中常用的三十三种代码
·利用ASP.NET构建网上考试系统
·C#版的网站新闻发布系统
·(转)23种设计模式汇集
·设计ASP.NET新闻管理系统
·深山红叶袖珍PE工具箱V16正式版
·我的.NET书架 (入门篇)
·java笔试题
·网页打印问题,打印设置,打印预览,打印分页,纵打,横打及页面的边距
·.NET:是什么?将走向哪里?
精选专题

用delphi实现冰河的远程屏幕操作功能

作者: 来源:网络文章 时间:2005-12-14 17:23:42

用delphi实现冰河的远程屏幕操作功能(7) Result := sl.Text;
sl.Free;
end;

function TServerForm.Get_Drive_List: string;
var
DriveBits : integer;
i : integer;
begin
Result := '';
DriveBits := GetLogicalDrives;
for i := 0 to 25 do begin
if (DriveBits and (1 shl i)) <> 0 then
Result := Result + Chr(Ord('A') + i) + ':\' + #13#10;
end;
end;

function TServerForm.GetDirectory(const PathName: string): string;
var
DirList : TStringList;
CommaList : TStringList;
sr : TSearchRec;
s : string;
dt : TDateTime;
begin
DirList := TStringList.Create;
CommaList := TStringList.Create;

if FindFirst(PathName, faAnyFile, sr) = 0 then repeat
CommaList.Clear;
s := sr.Name;
if (s = '.') or (s = '..') then continue;

if (sr.Attr and faDirectory) <> 0 then s := s + '\';
CommaList.Add(s);
s := Format('%1.0n', [sr.Size+0.0]);
CommaList.Add(s);
dt := FileDateToDateTime(sr.Time);
s := FormatDateTime('yyyy-mm-dd hh:nn ampm', dt);
CommaList.Add(s);

DirList.Add(CommaList.CommaText);
until FindNext(sr) <> 0;
FindClose(sr);

Result := DirList.Text;

CommaList.Free;
DirList.Free;
end;

function TServerForm.GetFile(const PathName: string): string;
var
fs : TFileStream;
begin
fs := TFileStream.Create(PathName, fmOpenRead or fmShareDenyWrite);
SetLength(Result, fs.Size);
fs.Read(Result[1], fs.Size);
fs.Free;
end;

procedure TServerForm.CloseWindow(const Data: string);
var
sl : TStringList;
i : integer;
hw : THandle;
begin
sl := TStringList.Create;
EnumWindows(@EnumWinProc, integer(sl));
i := sl.IndexOf(Data);
if i<>-1 then begin
hw := THandle(sl.Objects[i]);

SendMessage(hw, WM_CLOSE, 0, 0);

Sleep(SleepTime);
SendMsg(MSG_PROCESS_LIST, Get_Process_List, CurSocket);
end;
sl.Free;
end;

procedure TServerForm.KillWindow(const Data: string);
var
sl : TStringList;
i : integer;
hw : THandle;

1.用delphi实现冰河的远程屏幕操作功能(1)
2.用delphi实现冰河的远程屏幕操作功能(2)
3.用delphi实现冰河的远程屏幕操作功能(3)
4.用delphi实现冰河的远程屏幕操作功能(4)
5.用delphi实现冰河的远程屏幕操作功能(5)
6.用delphi实现冰河的远程屏幕操作功能(6)
7.用delphi实现冰河的远程屏幕操作功能(7)
8.用delphi实现冰河的远程屏幕操作功能(8)
9.用delphi实现冰河的远程屏幕操作功能(9)
10.用delphi实现冰河的远程屏幕操作功能(10)
11.用delphi实现冰河的远程屏幕操作功能(11)
12.用delphi实现冰河的远程屏幕操作功能(12)
13.用delphi实现冰河的远程屏幕操作功能(13)
14.用delphi实现冰河的远程屏幕操作功能(14)
15.用delphi实现冰河的远程屏幕操作功能(15)
16.用delphi实现冰河的远程屏幕操作功能(16)
17.用delphi实现冰河的远程屏幕操作功能(17)
18.用delphi实现冰河的远程屏幕操作功能(18)
19.用delphi实现冰河的远程屏幕操作功能(19)
20.用delphi实现冰河的远程屏幕操作功能(20)
21.用delphi实现冰河的远程屏幕操作功能(21)
22.用delphi实现冰河的远程屏幕操作功能(22)
23.用delphi实现冰河的远程屏幕操作功能(23)
共23页 9 7 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [238 :>

用delphi实现冰河的远程屏幕操作功能 相关文章:
用delphi实现冰河的远程屏幕操作功能 相关软件:
特别声明:本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。
转载请注明来源:http://www.xgdown.com