kernel32.dll的特殊命令

本文来自jennyvenus的回答,原始出处是:http://bbs.csdn.net/topics/20331741

还有就是老外的针对NT写的 http://vbnet.mvps.org/index.html?code/system/controlpnl4.htm


亲自验证过,有些命令不行,比如本人想打开网络连接都不行

如何使用? 参照这条命令去做:WinExec("Rundll32.exe shell32.dll, Control_RunDLL ncpa.cpl", SW_SHOW );


辅助选项 
模块: access.cpl 
命令: rundll32.exe shell32.dll,Control_RunDLL access.cpl,,5 
结果: 显示辅助选项/常规。 

命令: rundll32.exe shell32.dll,Control_RunDLL access.cpl,,1 
结果: 显示辅助选项/键盘。 

命令: rundll32.exe shell32.dll,Control_RunDLL access.cpl,,2 
结果: 显示辅助选项/声音。 

命令: rundll32.exe shell32.dll,Control_RunDLL access.cpl,,3 
结果: 显示辅助选项/显示。 

命令: rundll32.exe shell32.dll,Control_RunDLL access.cpl,,4 
结果: 显示辅助选项/鼠标。 

添加新硬件 
模块: sysdm.cpl 
命令:rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl @1 

增加新的打印机 
模块:shell32.dll 
命令:rundll32.exe shell32.dll,SHHelpShortcuts_RunDLL AddPrinter 

添加/删除程序 
模块:appwiz.cpl 
命令:rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,1 
结果:显示安装/卸载。 

命令:rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,1 
结果:显示安装/卸载。 

命令:rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,2 
结果:显示Windows 安装。 

命令:rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,3 
结果:显示启动盘。 

复制磁盘 
模块:diskcopy.dll 
命令:rundll32.exe diskcopy.dll,DiskCopyRunDll 

时间/日期 
模块: timedate.cpl 
命令: rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,,0 
结果: 显示设置日期/时间。 

命令: rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,,1 
结果: 显示设置时间区域。 

拨号连接(DUN) 
模块: rnaui.dll 
命令: rundll32.exe rnaui.dll,RnaDial 连接_名称 
结果: 打开指定的拨号连接。 
例子: 
x= Shell("rundll32.exe rnaui.dll,RnaDial " & "连接_名称", 1) 

显示器 
模块: desk.cpl 
结果: 背景设置。 

命令: rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,1 
结果: 屏幕保护设置。 

命令: rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,2 
结果: 外观设置。 

命令: rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,3 
结果: 设置窗口。 

操纵杆 
模块: joy.cpl 
命令: rundll32.exe shell32.dll,Control_RunDLL joy.cpl 

邮件/传真 
模块: mlcfg32.cpl 
命令: rundll32.exe shell32.dll,Control_RunDLL mlcfg32.cpl 
结果: 出现 MS Exchange 属性设置。 

邮局设置 
模块: wgpocpl.cpl 
命令: rundll32.exe shell32.dll,Control_RunDLL wgpocpl.cpl 
结果: 显示 MS Postoffice Workgroup Admin 设置。 

主设置 
模块: main.cpl 
命令: rundll32.exe shell32.dll,Control_RunDLL main.cpl @0 
结果: 显示鼠标属性。 

命令: rundll32.exe shell32.dll,Control_RunDLL main.cpl @1 
结果: 显示键盘/速度属性。 

命令: rundll32.exe shell32.dll,Control_RunDLL main.cpl @1,,1 
结果: 显示键盘/语言属性。 

命令: rundll32.exe shell32.dll,Control_RunDLL main.cpl @1,,2 
结果: 显示键盘/常规属性。 

命令: rundll32.exe shell32.dll,Control_RunDLL main.cpl @2 
结果: 显示打印机属性。 

命令: rundll32.exe shell32.dll,Control_RunDLL main.cpl @3 
结果: 显示字体属性。 

命令: rundll32.exe shell32.dll,Control_RunDLL main.cpl @4 
结果: 显示电源管理属性。 


增加 Modem 
模块:modem.cpl 
命令:rundll32.exe shell32.dll,Control_RunDLL modem.cpl,,add 

多媒体 
模块: mmsys.cpl 
命令: rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,0 
结果:声音。 

命令: rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,1 
结果:视频。 

命令: rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,2 
结果:声音 MIDI。 

命令: rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,3 
结果:CD/音乐。 

命令: rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,4 
结果:高级。 

命令: rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl @1 
结果:声音。 

网络 
模块:netcpl.cpl 
命令:rundll32.exe shell32.dll,Control_RunDLL netcpl.cpl 

打开方式窗口(Open With) 
模块: shell32.dll 
命令:rundll32.exe shell32.dll,OpenAs_RunDLL path\filename 

口令 
模块: password.cpl 
命令: rundll32.exe shell32.dll,Control_RunDLL password.cpl 

区域设置 
模块: intl.cpl 
命令: rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,0 
结果: 区域设置。 

命令: rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,1 
结果: 数字格式设置。 

命令: rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,2 
结果: 金额格式设置。 

命令: rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,3 
结果:时间格式设置。 

命令: rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,4 
结果: 日期格式设置。 

屏幕保护 
模块: appwiz.cpl 
命令: rundll32.exe desk.cpl,InstallScreenSaver c:\win\system\Flying Windows.scr 
结果: 安装屏幕保护并显示预览属性页。 

系统设置 
模块: sysdm.cpl 
命令: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,0 
结果: 显示常规设置。 

命令: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,1 
结果: 显示设备管理设置。 

命令: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,2 
结果: 显示硬件设置。 

命令: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,3 
结果: 显示性能设置。 

IE4 设置 
模块: inetcpl.cpl 
命令: rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl


//还有这里,是针对NT的一些纠正 http://vbnet.mvps.org/index.html?code/system/controlpnl4.htm

Mail and Fax Options
     
module: MLCFG32.CPL
     
command: rundll32.exe shell32.dll,Control_RunDLL mlcfg32.cpl
result: displays the Microsoft Exchange Profiles general property page
     

Mail Postoffice Options
     
module: WGPOCPL.CPL
     
command: rundll32.exe shell32.dll,Control_RunDLL wgpocpl.cpl
result: displays the Microsoft Postoffice Workgroup Admin property page
     

Main Group Options/Properties
     
module: MAIN.CPL
     
command: rundll32.exe shell32.dll,Control_RunDLL main.cpl @0
result: displays Mouse Properties
     
command: rundll32.exe shell32.dll,Control_RunDLL main.cpl @1
result: displays Keyboard Properties, Speed tab
     
command: rundll32.exe shell32.dll,Control_RunDLL main.cpl @1,,1
result: displays Keyboard Properties, Language tab
     
command: rundll32.exe shell32.dll,Control_RunDLL main.cpl @1,,2
result: displays Keyboard Properties, General tab
     
command: rundll32.exe shell32.dll,Control_RunDLL main.cpl @2
result: displays the Printers Folder (including Add Printer)
     
command: rundll32.exe shell32.dll,Control_RunDLL main.cpl @3
result: displays the Fonts Folder in Explorer view
     
command: rundll32.exe shell32.dll,Control_RunDLL main.cpl @4
result: displays Power Management Properties
     

Modem
     
module: MODEM.CPL
     
command: rundll32.exe shell32.dll,Control_RunDLL modem.cpl,,add
result: Runs the Add New Modem wizard
     

Multimedia & Sound Properties
     
module: MMSYS.CPL
     
command: rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,0
result: displays the Multimedia/Audio property page
     
command: rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,1
result: displays the Multimedia/Video property page
     
command: rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,2
result: displays the Multimedia/MIDI property page
     
command: rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,3
result: displays the Multimedia/CD Music property page
     
command: rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,4
result: displays the Multimedia/Advanced property page
     
command: rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl @1
result: displays the Sound Properties page
     

Network Properties (Win9x / WinNT)
     
module: NETCPL.CPL(Win9x) /  NCPA.DLL(WinNT)
     
command: Win9x: rundll32.exe shell32.dll,Control_RunDLL netcpl.cpl
result: displays Networks properties, Configuration tab
     
command: WinNT: rundll32.exe shell32.dll,Control_RunDLL ncpa.cpl
result: displays Networks properties, Identification tab
     
command: WinNT: rundll32.exe shell32.dll,Control_RunDLL ncpa.cpl,,1
result: displays Networks properties, Services tab
   
command: WinNT: rundll32.exe shell32.dll,Control_RunDLL ncpa.cpl,,2
result: displays Networks properties, Protocols tab
   
command: WinNT: rundll32.exe shell32.dll,Control_RunDLL ncpa.cpl,,3
result: displays Networks properties, Adapters tab
        
command: WinNT: rundll32.exe shell32.dll,Control_RunDLL ncpa.cpl,,4
result: displays Networks properties, Bindings tab
     

   
module: NTLANUI.DLL(WinNT)
    
command: WinNT: rundll32.exe ntlanui.dll,ShareCreate
result: displays the NT Create Share Dialog
    
command: WinNT: rundll32.exe ntlanui.dll,ShareManage
result: displays the NT Manage Shared Directories Dialog
   



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值