-2

I have to run my C# application that I wrote it recently on several computers with window 7 operating system. Here is a big challenge with it, Application must run on startup and user must not be able to work with anything else such as windows hotkeys, other applications, some directories and etc. Considering I don’t want to kill any process or service as less as possible, Please give me the best solution. Thanks and waiting


Maybe A little more information will help did you see Devices like ATMs or Medical devices that window is running on? Those devices don't allow user to manipulate with desktop or anywhere else, I want their solution. . . my Application Will run as a device handler(A Medical Device in Operating room).

mrArmg
  • 83
  • 1
  • 1
  • 9
  • you need to hook into windows dll. may be pinvoke.. – Ravi Gadag Feb 14 '12 at 12:19
  • 1
    "kiosk mode" is the phrase you are looking for. That should help improve your search results. – J. Holmes Feb 14 '12 at 12:19
  • @gideon I won't be installing on my machine :) – Amar Palsapure Feb 14 '12 at 12:19
  • @AmarPalsapure :) mrArmg you need to better explain the purpose of your program, or your question will get closed shortly. – gideon Feb 14 '12 at 12:21
  • thanks so guys but It's not really scary, It is my University Challenge :D – mrArmg Feb 14 '12 at 12:22
  • 3
    People should calm down. There are actually quite legitimate purposes for this type of installation. – Rich.Carpenter Feb 14 '12 at 12:24
  • @gideon I want windows just for running my app with restricting user to do anything else. – mrArmg Feb 14 '12 at 12:25
  • @Rich.Carpenter yea just realized coming across a program like this for a cyber cafe, which would only let you use the PC per hour if you paid, mrArmg is not very clear on why he wants such functionality though. – gideon Feb 14 '12 at 12:44
  • @gideon did you see Devices like ATMs or Medical devices that window is running on? Those devices don't allow user to manipulate with desktop or anywhere else, I want their solution. . . my Application Will run as a device handler(A Medical Device in Operating room). – mrArmg Feb 14 '12 at 13:01

4 Answers4

1

You probably shouldn't write such an application in the first place (nagware?).

Anyway. I think what you are looking for is actually "kiosk" software. Here is blog entry that describes how to lock down the computer to effectively run in "kiosk mode".

Note however, that not every application can (or should) be used in that mode. Either because it has loopholes that still allow you to do thing (for example the file open/save dialog still allows you to create directories or navigate the file system), or because they were simply not designed with that goal in mind.

Christian.K
  • 47,778
  • 10
  • 99
  • 143
0

This sounds actually like a (very) bad idea to me...

You could probably hook every Keyboard event so you disable OS shortcut (Windows + D, Windows + E...). See here.

Also hide the Windows taskbar.

Make sure your application starts with Windows.

This sounds a bit hacky to me...

Community
  • 1
  • 1
ken2k
  • 48,145
  • 10
  • 116
  • 176
  • Dear ken2k thanks for your reply, Be sure about my goal, there isn't any reason for my answer except solving my challenge. – mrArmg Feb 14 '12 at 12:54
0

A program with the properties you mention is called a (very restrictive flavour of) shell. So you need to register your program as a shell (instead of explorer.exe) for the poor, poor user you want to restrict.

Eugen Rieck
  • 64,175
  • 10
  • 70
  • 92
0

You might look into using a local group policy to enforce this restriction. Check this out.

Rich.Carpenter
  • 1,056
  • 1
  • 9
  • 21