Visual Basic System Services
Adding Control Panel Functions to a VB Application: S-Z
     
Posted:   Friday September 17, 1999
Updated:   Monday December 26, 2011
     
Applies to:   VB4-32, VB5, VB6
Developed with:   VB4-32, Windows 95, VB6, Windows NT4
OS restrictions:   Win9x, NT4, 2000
Author:   VBnet - Randy Birch, Karl E. Peterson, Others (below)
     

Related:  

Rundll32: Control Panel Functions A-C
Rundll32: Control Panel Functions D-F
Rundll32: Control Panel Functions G-J
Rundll32: Control Panel Functions K-N
Rundll32: Control Panel Functions O-R
Rundll32: Control Panel Functions S-Z
     
 Below:   Screen Saver Installation
Server Properties (WinNT)
System Properties (Win9x / WinNT)
Shutdown
Telephony Properties (Win9x / Win NT)
Themes
TweakUI
UPS (Win NT)
Users Properties (Win98)
     
 Prerequisites
  
None.

Screen Saver Installation
   
module: DESK.CPL
   
command: rundll32.exe desk.cpl,InstallScreenSaver c:\win\system\Flying Windows.scr
result: Installs the new screen saver and runs the display/screen saver preview property page
   
comments: Specify a valid path to the screen saver file to install. If you are installing a new screen saver, first copy the screen saver file into the \windows\system folder, then execute the above command. This will install the specified saver as the current screen saver. It will not copy the file into the windows\system folder. Replace the string above with the name of your actual .scr file.
   

Server Properties (WinNT)
   
module: SVRMGR.CPL
   
command: WinNT: rundll32.exe shell32.dll,Control_RunDLL srvmgr.cpl
result: displays the Server Properties (General) Dialog
   

System Properties (Win9x / WinNT)
   
module: SYSDM.CPL
      
command: Win9x: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,0
command: WinNT: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,0
result: displays the General property page
   
command: Win9x: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,1
result: displays the Device Manager property page
   
command: Win9x: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,2
result: displays the Hardware Profiles property page
   
command: Win9x: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,3
command: WinNT: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,1
result: displays the Performance property page
   
command: WinNT: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,2
result: displays the Environment property page
  
command: WinNT: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,3
result: displays the Startup/Shutdown property page
  
command: WinNT: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,4
result: displays the Hardware Profiles property page
  
command: WinNT: rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,5
result: displays the User Profiles property page
  

Shutdown
   
module: USER.EXE
   
command: rundll32.exe user.exe,restartwindows
result: forces Windows to perform a proper shutdown, and restart the computer
   
command: rundll32.exe user.exe,exitwindows
result: forces Windows to shutdown, and wait either to be turned off, or reset
   
Thanks to Steve P. for providing these commands
   

Telephony Properties (Win9x / Win NT)
   
module: TELEPHON.CPL
   
command: Win9x: rundll32.exe shell32.dll,Control_RunDLL telephon.cpl users
result: displays the Dialing Properties dialog
   
command: NT: rundll32.exe shell32.dll,Control_RunDLL telephon.cpl
result: displays the Dialing Properties (My Location / Drivers) dialog
  

Themes
   
module: THEMES.CPL
   
command: rundll32.exe shell32.dll,Control_RunDLL themes.cpl
result: displays the Themes control panel app (if installed)
   

TweakUI
   
module: TWEAKUI.CPL
   
command: rundll32.exe shell32.dll,Control_RunDLL tweakui.cpl
result: displays the TweakUI control panel applet (if installed)
   

UPS (Win NT)
   
module: UPS.CPL
   
command: NT: rundll32.exe shell32.dll,Control_RunDLL ups.cpl
result: displays the Uninteruptable Power Supply properties
   

Users Properties (Win98)
   
module: INTECPL.CPL
   
command: rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl users
result: displays the Multi-User Settings properties dialog (MS Family Networking Login)
   

 
 

PayPal Link
Make payments with PayPal - it's fast, free and secure!

 
 
 
 

Copyright ©1996-2011 VBnet and Randy Birch. All Rights Reserved.
Terms of Use  |  Your Privacy

 

 

Hit Counter