Solved

Display Properties API?

Posted on 2002-07-03
5
226 Views
Last Modified: 2008-02-01
Can anyone provide the API or even suggest the .dll from which I can call the Display Properties Window??

Will this call be affected by any NT access restrictions?

Thanks

Jell
0
Comment
Question by:James Elliott
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 11

Expert Comment

by:joekendall
ID: 7127152
Which tab are you wanting to display? You can do this without declaring a DLL. You just need to use the Shell command. Here are the options you have:

Background Tab:
Shell(" rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,0")

ScreenSaver Tab:
Shell("rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,1")

Appearance Tab:
Shell("rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,2")

Settings Tab:
Shell("rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,3")

Thanks!

Joe
0
 
LVL 11

Expert Comment

by:joekendall
ID: 7127156
There is a space in the first one that should not be there. It should be:

Background Tab:
Shell("rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,0")


Thanks!

Joe

0
 
LVL 12

Author Comment

by:James Elliott
ID: 7127178
Thanks Joe, thats great.

Will the code bring up the properties window regardless of any access restrictions set by an NT administrator?

Is their a list of the windows you can shell from the shell32.dll and their respective parameters?

Thanks

Jell
0
 
LVL 11

Accepted Solution

by:
joekendall earned 100 total points
ID: 7127220
I logon as an administrator so I'm not sure about restrictions.

The list of windows you mention are in this case called cpl's. They are applets. Yes, you can shell many more of them. I believe any that you find in the Control Panel can be shelled.

Thanks!

Joe
0
 
LVL 12

Author Comment

by:James Elliott
ID: 7127229
Thanks for your help
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question