Solved

Display Properties API?

Posted on 2002-07-03
5
223 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
  • 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

821 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