<内容>
在程序中调用控制面板项目
启动控制面板 WinExec('rundll32.exe shell32.dll,Control_RunDLL',9);
Internet 属性 常规 WinExec('rundll32.exe shell32.dll,Control_RunDLL Inetcpl.cpl ,0',9) 安全 WinExec('rundll32.exe shell32.dll,Control_RunDLL Inetcpl.cpl ,1',9) 内容 WinExec('rundll32.exe shell32.dll,Control_RunDLL Inetcpl.cpl ,2',9) 连接 WinExec('rundll32.exe shell32.dll,Control_RunDLL Inetcpl.cpl ,3',9) 程序 WinExec('rundll32.exe shell32.dll,Control_RunDLL Inetcpl.cpl ,4',9) 高级 WinExec('rundll32.exe shell32.dll,Control_RunDLL Inetcpl.cpl ,5',9) 要注意空格,Inetcpl.cpl后有一空格符。
添加/删除程序 安装/卸载 WinExec('rundll32.exe shell32.dll,Control_RunDLL Appwiz.cpl ,1', 9) Windows安装程序 WinExec('rundll32.exe shell32.dll,Control_RunDLL Appwiz.cpl ,2', 9) 启动盘 WinExec('rundll32.exe shell32.dll,Control_RunDLL Appwiz.cpl ,3', 9)
网络 网络配置 WinExec('rundll32.exe shell32.dll,Control_RunDLL Netcpl.cpl',9)
下面是用 masm32汇编 实现启动 Internet选项 中 高级 项的代码。
.386 .model flat,stdcall option casemap:none
include \masm32\include\windows.inc include \masm32\include\user32.inc include \masm32\include\kernel32.inc includelib \masm32\lib\user32.lib includelib \masm32\lib\kernel32.lib
.data ControlText db "rundll32.exe shell32.dll,Control_RunDLL Inetcpl.cpl ,5",0
.code start: invoke WinExec,addr ControlText,SW_SHOW invoke ExitProcess,0
end start
|