Delphi 无法结束进程的程序


本文整理自网络,侵删。

 unit Unit1;

interface

uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs,ShellAPI;

type
TForm1 = class(TForm)
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;

var
Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.FormCreate(Sender: TObject);
begin
ShellExecute(0, 'open',PAnsiChar(Application.Exename),nil,nil, SW_SHOWNORMAL);
ExitProcess(0);
end;

end.

相关阅读 >>

Delphi通过ie窗口句柄获取网页接口(iwebbrowser2)

Delphi 调用ie隐藏的命令

Delphi获取各种编码的识别符

Delphi 校验文件大小

Delphi 获取cpu monitor使用率

Delphi 中 image 控件加载bmp、jpg、gif、png等图片的办法

Delphi如何开发游戏外挂

Delphi检测用户是否具有administrator权限

Delphi 加载大文件显示进度条

Delphi zlib 流压缩解压

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...