Disable Control Panel

Hi experts out there !!!!

How can I disable user from accessing control panel and display property using vb.
And also how to prevent user from add, delete, or change properties of printer.

TQ in advanced
mshukAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mcriderCommented:
To disable accessing the control panel... In your \WINDOWS\SYSTEM directory, there is a .CPL file for each control panel item... Just rename the .CPL files to another extension.


Cheers!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mshukAuthor Commented:
Thanks mcrider for your suggestion, its work. I have tried  to rename timedate.cpl and its work well in windows environment, but I still can change date at DOS prompt, how to prevent this ? How about printer ?
0
mcriderCommented:
With the printer environment, unfortunately, that is part of the SHELL32.DLL and you can't stop that.  If you rename SHELL32.DLL your system WILL crash.  This command launches the printer configuration:

   rundll32.exe shell32.dll,SHHelpShortcuts_RunDLL PrintersFolder


where:
  rundll32.exe executes a DLL
  shell32.dll is the DLL to be executed
  SHHelpShortcuts_RunDLL is the exported entry point in shell32.dll that is started
  PrintersFolder is the argument passed to the DLL


As for Date/Time in DOS, this is an internal command contained in COMMAND.COM.  You would have to hex edit your command.com to rename the date command.

For example, in the WIN95 COMMAND.COM at location 0x10B0C is the string DATE, and at location 0x10B11 is the string TIME...  If you were to change the character at location 0x10B0C from 0x44 to 0x45 and the character at location 0x10B11 from 0x54 to 0x55, then the new date and time commands would be EATE and UIME.


Cheers!
0
mcriderCommented:
Thanks for the points! Glad I could help!


Cheers!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.