Visual Basic System Services
Adding Control Panel Functions to a VB Application: K-N
     
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:   Mail and Fax Options
Mail Postoffice Options
Main Group Options/Properties
Modem
Multimedia & Sound Properties
Network Properties (Win9x / WinNT)
  
 Prerequisites
  
None.


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
   

 
 

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