- rundll32.exe shell32.dll,Control_RunDLL CPL
- rundll32.exe shell32.dll,Control_RunDLL timedate.cpl
#include<stdio.h>
#include<windows.h>
int RunControlPanelApplet(
char*sAppletFileName)
{
char s[1024];
sprintf(s,
"rundll32.exe shell32.dll,"
"Control_RunDLL %s",
sAppletFileName);
return
WinExec(s, SW_SHOWNORMAL);
}
#include<windows.h>
int RunControlPanelApplet(
char*sAppletFileName)
{
char s[1024];
sprintf(s,
"rundll32.exe shell32.dll,"
"Control_RunDLL %s",
sAppletFileName);
return
WinExec(s, SW_SHOWNORMAL);
}
Listing #1 : C code. Download opencpl2.c (0.31 KB).
unit open_cpl;
interface
function RunControlPanelApplet(
sAppletFileName : string) : integer;
implementation
uses Windows;
function RunControlPanelApplet(
sAppletFileName : string) : integer;
begin
Result :=
WinExec(
PChar('rundll32.exe shell32.dll,'+
'Control_RunDLL '+sAppletFileName),
SW_SHOWNORMAL);
end;
end.
interface
function RunControlPanelApplet(
sAppletFileName : string) : integer;
implementation
uses Windows;
function RunControlPanelApplet(
sAppletFileName : string) : integer;
begin
Result :=
WinExec(
PChar('rundll32.exe shell32.dll,'+
'Control_RunDLL '+sAppletFileName),
SW_SHOWNORMAL);
end;
end.
Listing #2 : Delphi code. Download opencpl1.pas (0.33 KB).
- access.cpl: Accessibility Properties
- appwiz.cpl: Add/Remove Programs Properties
- desk.cpl: Display Properties
- intl.cpl: Regional Settings Properties
- joy.cpl: Joystick Properties
- main.cpl: Mouse Properties
- mmsys.cpl: Multimedia Properties
- modem.cpl: Modems Properties
- sysdm.cpl: System Properties
- timedate.cpl: Time/Date Properties
0 comments:
Post a Comment