在程式中呼叫 ShellExecute、system() 或命令列直接執行:
rundll32.exe shell32.dll,Control_RunDLL [參數]
下表整理常用指令 (主要測試於 Windows XP,Win2k 部分可能無效)。
| 功能 | 命令列 |
|---|---|
| 開啟控制台 | rundll32.exe shell32.dll,Control_RunDLL |
| 輔助選項 - 鍵盤 | 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 |
| 輔助選項 - 傳統 | rundll32.exe shell32.dll,Control_RunDLL access.cpl,,5 |
| 新增硬體精靈 | rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl @1 |
| 新增印表機精靈 | rundll32.exe shell32.dll,SHHelpShortcuts_RunDLL AddPrinter |
| 新增/移除程式 - 安裝/解除 | rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,1 |
| 新增/移除程式 - Windows 元件 | rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,2 |
| 日期/時間屬性 | rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,,0 |
| 時區設定 | rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,,1 |
| 顯示屬性 - 背景 | rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,0 |
| 顯示屬性 - 螢幕保護 | 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 |
| 字型資料夾 | rundll32.exe shell32.dll,SHHelpShortcuts_RunDLL FontsFolder |
| 遊戲控制器 - 一般 | rundll32.exe shell32.dll,Control_RunDLL joy.cpl,,0 |
| 遊戲控制器 - 進階 | rundll32.exe shell32.dll,Control_RunDLL joy.cpl,,1 |
| 滑鼠屬性 | 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 @2 |
| 字型資料夾 (替代) | rundll32.exe shell32.dll,Control_RunDLL main.cpl @3 |
| 輸入法屬性 | rundll32.exe shell32.dll,Control_RunDLL main.cpl @4 |
| 新增 Modem 精靈 | rundll32.exe shell32.dll,Control_RunDLL modem.cpl,,add |
| 多媒體 - 音訊 | rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,0 |
| 多媒體 - 視訊 | rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,1 |
| 多媒體 - MIDI | rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,2 |
| 多媒體 - CD 音樂 | rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,3 |
| 多媒體 - 裝置 | rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,4 |
| 聲音屬性 | rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl @1 |
| 網路屬性 | rundll32.exe shell32.dll,Control_RunDLL netcpl.cpl |
| ODBC 32 管理員 | rundll32.exe shell32.dll,Control_RunDLL odbccp32.cpl |
| 密碼屬性 | rundll32.exe shell32.dll,Control_RunDLL password.cpl |
| 電源管理 | rundll32.exe shell32.dll,Control_RunDLL powercfg.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 |
| 撥號屬性 | rundll32.exe shell32.dll,Control_RunDLL telephon.cpl |
| 桌面主題 | rundll32.exe shell32.dll,Control_RunDLL themes.cpl |
| 功能 | 命令列 |
|---|---|
| 格式化磁碟對話框 | rundll32.exe shell32.dll,SHFormatDrive |
| 建立公文包 (桌面) | rundll32.exe syncui.dll,Briefcase_Create |
| 建立捷徑對話框 | rundll32.exe appwiz.cpl,NewLinkHere %1 |
| 開啟方式對話框 (指定檔案) | rundll32.exe shell32.dll,OpenAs_RunDLL 路徑\檔名 |
| 安裝螢幕保護程式 | rundll32.exe desk.cpl,InstallScreenSaver 檔名.scr |
| 列印 HTML 檔案 | rundll32.exe mshtml.dll,PrintHTML 檔名.htm |
| 撥號連線視窗 (指定連線名) | rundll32.exe rnaui.dll,RnaDial "連線名稱" |
| 新建撥號連線精靈 | rundll32.exe rnaui.dll,RnaWizard |
| 區域設定 - 一般/數字/貨幣/時間/日期 | rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,0~4 |
| 強制重新開機 | rundll32.exe user.exe,restartwindows |
| 強制關機 | rundll32.exe user.exe,exitwindows |
| 磁碟複製視窗 | rundll32.exe diskcopy.dll,DiskCopyRunDll |
// 開啟系統屬性 - 裝置管理員
ShellExecute(NULL, _T("open"), _T("rundll32.exe"),
_T("shell32.dll,Control_RunDLL sysdm.cpl,,1"),
NULL, SW_SHOWNORMAL);