Solved

Display Properties API?

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
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…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now