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
Solved

How to lock the system !!

Posted on 2002-06-14
12
154 Views
Last Modified: 2013-12-28
Hi all!,
I want to make a program in C++ which on execution should close all the running application other than itself and remove the desktop. Only window of this program should be shown and nothing else. All the keys of keyboard must be deactivated.

Please help me making such program ..

Thanks and Regards,
Jitendra Sharma
0
Comment
Question by:jitu_sharma
  • 3
  • 3
  • 3
  • +3
12 Comments
 
LVL 1

Expert Comment

by:Omycron
ID: 7077742
How do you want to reactivate windows?
What should be this program for?
Do you want to lock the mouse too?

Omycron
0
 

Author Comment

by:jitu_sharma
ID: 7077774
hi omycron,
Thanks for rply!

I don't want to reactivate the other windows.

I just want to write a simple application which has the control of desktop. Like as soon as we start application it should hide the desktop with the help of handle returned by GetDesktopWindow() function.

Yeah! I also want to lock the mouse,

Hope this will be a bit more clear...

Thanks amd regards,
Jitendra Sharma
0
 
LVL 1

Expert Comment

by:Omycron
ID: 7077804
Yes but what sense does this program make?
Do you want to bother someone with this program, or is it useful in a way I do not see?

Regards
Omycron
0
Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

 
LVL 1

Expert Comment

by:Omycron
ID: 7077832
Yes but what sense does this program make?
Do you want to bother someone with this program, or is it useful in a way I do not see?

Regards
Omycron
0
 
LVL 3

Expert Comment

by:alexgreen
ID: 7077945
One wonders how you will regain control of your PC?
0
 

Author Comment

by:jitu_sharma
ID: 7077953
hey Omycron!

This is very useful for me.
As far as locking mouse is concerned I made a mistake. Believe me I need to solve this problem. I'd much appreciate if you can help me solving this problem.

Thanks
Jitendra sharma
0
 
LVL 23

Expert Comment

by:slink9
ID: 7077976
Okay.  I will be more forward.  Are you writing a virus?  If so, you will not get any help here.  WHAT is the usefulness of this program?  If you give a good reason for wanting to complete these unusual actions you may be able to get some help.
Since you say you are writing in C++ you may be able to get a better solution (if truly a legit request) from the C++ area - http://www.experts-exchange.com/cplusprog/
0
 

Author Comment

by:jitu_sharma
ID: 7078055
I am not writing any virus. I have this assignment to finish. This program when it starts just need to close the desktop and lock the keys of keyboard. It won't lock the mouse. One execution of this program one can only shut the PC down. That shut down option will be given in the program. This would be a dialog based program.

Hey slink9 and omycron, If you guys can help me you will be much appreciated.
If you don't want then no problem.

Thanks a lot...
Regards,
Jitendra Sharma
0
 
LVL 23

Expert Comment

by:slink9
ID: 7078078
Nope.  We don't do homework either.  My last homework assignment was about fourteen years ago.  I did it by myself so I don't plan on doing someone else's homework for them.
0
 
LVL 44

Expert Comment

by:CrazyOne
ID: 7078157
Slink actually the homework policy has been relaxed a little. We as members are now asked to not give direct answers to homework question but try and direct the user in a direction to help them figure it out for them selves. However I have asked CS is to step in here and make a decision on this quesion.
0
 

Accepted Solution

by:
ComTech earned 0 total points
ID: 7078196
Hello jitu_sharma, In Section 3 of the Members Guidlines, which is located at the bottom of all pages here at EE.

* violating the guidelines for academic honesty or other unethical behavior.

We have loosened our restrictions on our Homework Policy and the new Member agreement will reflect the change, as to where we may "HELP" pesrons with their homework, as long as we do not do it for you.  We may give pointers, and help with code, but it is no you to poesent the assignment, and determine where you are, and how much you under stand.

If we do it for you, then you learn nothing.

If you have some code started, and need help, you may close this question and ask it in the C++ Topic Area.

Regards,
ComTech
Community Support
@ Experts Exchange

Ps. This question in now closed and will refund your points to you.
0
 
LVL 23

Expert Comment

by:slink9
ID: 7078201
Why should we go to Google and find the links when the questioner can do the same?  Others can give pointers.  I will resist.  Hey, it's easy to resist when I don't do C++ programming!!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

809 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