Solved

Display Properties API?

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
type of query 11 42
VBA to copy the database back end to a new database file. 3 34
Should I keep recordsets open? 3 24
Modify report 8 6
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

777 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