谢谢
解决方案 »
- 函数调用问题(请老鸟进来)
- 在Delphi里怎么定义无符号char?
- 怎么取一字符串的特定位置的某几个字符?
- 有关于用delphi开发分布式应用系统例子的书籍?
- dataset的filter中怎么用DATETIME类型
- 关于MainMenu的问题,和列出逾越限度索引的问题
- delphi 2010 dbExpress 连接Oracle9i报错
- 代码重用的问题
- 如果将OCX导入DELPHI中然后进行调用发布时的问题
- 关于BDE连接access97数据库
- 在delphi中利用了excelwork新增了一个excel文件,用什么语句保存它 然后退出. 在线等待!
- try...finally..语句有什么用,那些地方最好么用这一类语句的?
if h = 0 then ShowMessage('no') ;
MutexHandle:Thandle;
begin Mutexhandle := Windows.CreateMutex(nil, true, 'abcd'); if Mutexhandle <> 0 then ShowMessage('Exists') ;
uses tlhelp32;--------------
var
lppe:tprocessentry32;
sshandle:thandle;
found:boolean;
begin
sshandle:=createtoolhelp32snapshot(th32cs_snapail,0);
found:=process32first(sshandle,lppe);
while found do
begin
//进行你的处理其中lppe.szExefile就是程序名。
found:=proccess32next(sshandle,lppe);
end;
end;//线程用Thread32First,Thread32Next
//模块用Module32First,Module32Next
//堆用Heap32First,Heap32Next
//可执行文件用process32first然后在列表里找