程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 更多編程語言 >> Delphi >> delphi編程調用控制面板項目大全

delphi編程調用控制面板項目大全

編輯:Delphi

 需要在程序運行過程中啟動控制面板中的各個設置功能嗎,使用如下方法吧:

  var x:cardinal;
begin
{啟動控制面板}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL,9); {輔助選項 屬性-鍵盤}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL Access.cpl,,1,9);
{輔助選項 屬性-聲音}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL Access.cpl,,2,9);
{輔助選項 屬性-顯示}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL Access.cpl,,3,9);
{輔助選項 屬性-鼠標}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL Access.cpl,,4,9);
{輔助選項 屬性-常規}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL Access.cpl,,5,9);
{添加/刪除程序 屬性-安裝/卸載}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL Appwiz.cpl,,1,9);
{添加/刪除程序 屬性-Windows安裝程序}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL Appwiz.cpl,,2,9);
{添加/刪除程序 屬性-啟動盤}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL Appwiz.cpl,,3,9);
{顯示 屬性-背景}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,0,9);
{顯示 屬性-屏幕保護程序}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,1,9);
{顯示 屬性-外觀}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,2,9);
{顯示 屬性-設置}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,3,9);
{Internet 屬性-常規}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL Inetcpl.cpl,,0,9);
{Internet 屬性-安全}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL Inetcpl.cpl,,1,9);
{Internet 屬性-內容}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL Inetcpl.cpl,,2,9);
{Internet 屬性-連接}
x:=winexec(rundll32.exe shell32. ,Control_RunDLL Inetcpl.cpl,,3,9);
{Internet 屬性-程序}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL Inetcpl.cpl,,4,9);
{Internet 屬性-高級}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL Inetcpl.cpl,,5,9);
{區域設置 屬性-區域設置}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL Intl.cpl,,0,9);
{區域設置 屬性-數字}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL Intl.cpl,,1,9);
{區域設置 屬性-貨幣}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL Intl.cpl,,2,9);
{區域設置 屬性-時間}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL Intl.cpl,,3,9);
{區域設置 屬性-日期}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL Intl.cpl,,4,9);
{游戲控制器-一般}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL Joy.cpl,,0,9);
{游戲控制器-高級}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL Joy.cpl,,1,9);
{鼠標 屬性}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL Main.cpl,9);
{多媒體 屬性-音頻}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL Mmsys.cpl,,0,9);
{多媒體 屬性-視頻}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL Mmsys.cpl,,1,9);
{多媒體 屬性-MIDI}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL Mmsys.cpl,,2,9);
{多媒體 屬性-CD音樂}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL Mmsys.cpl,,3,9);
{多媒體 屬性-設備}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL Mmsys.cpl,,4,9);
{調制解調器 屬性}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL Modem.cpl,9);
{網絡}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL Netcpl.cpl,9);
{密碼 屬性}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL PassWord.cpl,9);
{掃描儀與數字相機 屬性}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL Sticpl.cpl,9);
{系統 屬性-常規}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL Sysdm.cpl,,0,9);
{系統 屬性-設備管理器}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL Sysdm.cpl,,1,9);
{系統 屬性-硬件配置文件}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL Sysdm.cpl,,2,9);
{系統 屬性-性能}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL Sysdm.cpl,,3,9);
{日期/時間 屬性}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,9);
{電源管理 屬性}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL Powercfg.cpl,9);
{撥號屬性}
x:=winexec(rundll32.exe shell32.dll,Control_RunDLL Telephon.cpl,9);{----------------------調用錯誤----------------------}
if x=0 then messagebox(0,程序超出內存,錯誤,0); if x=ERROR_BAD_FORMAT then messagebox(0,該程序非一個合法的Win32.EXE程序).,錯誤,0);
if x=ERROR_FILE_NOT_FOUND then messagebox(0,指定文件沒找到,錯誤,0);
if x=ERROR_PATH_NOT_FOUND then messagebox(0,指定路徑沒找到,錯誤,0);
end;


 

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved