In this example we explain how to call the mmsys.cpl from delphi using the
ShellExecute procedure. The mmsys.cpl is the multimedia system from control panel.
To call a cpl application you need to execute the 'rundll32.exe' with a param that
is the name of the cpl that you need.
Ex. you have a Tform with a btn :
Sample Code :
1 2 implementation3 4 5 6 {$R *.dfm}7 8 uses shellapi;
9 10 11 12 procedure TForm1.Button1Click(Sender: TObject);
13 14 begin15 16 ShellExecute(Form1.Handle, nil, 'rundll32.exe','shell32.dll,Control_RunDLL
17 mmsys.cpl'SHOW);
18 19 end;
20 21 end.
best rgds
Ivan