473,395 Members | 1,474 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to make Windows inaccessible from my software user?

Hi all,
The following are my need:
1. When a PC starts, my software should come up directly without any user
interaction.
2. Only my software will be accessible to the user and they will not be able
to access anything from Windows - nothing at all.
3. A super user can access the software as well as the full windows

The windows OS may be windows 2k, windows XP or windows 2k3.

Temp solution:
I can place my software in start-up and will make it full screen, without
any control buttons like minimize, maximize, close, resize etc so user will
see always my software at start up.
Problems: Some one can restart PC and in Safe-mode or other options they can
use and they may access windows and if I am disabling all these options
some-how then when we need PC access for maintenance or some other
administrative purpose then it will not be available to me. So, for that I
will create a super user account in my software through which super user can
access the window.
Also, if I make Alt + Ctrl + Del, Alt + Tab, Ctrl + Shift + Esc, Windows +
D, Windows + E, Windows + R etc keys disable then I will need to manipulate
all these keys individually and may be there will be lot more.

So I need some way through which I can restrict the normal user to access
anything from windows and they will only be able to access my software
only - nothing else and a super user can access the software as well as
normal windows access too - and all I want to do programmatically and if
possible using only C# - but its not hard requirement - I can use other
languages too.

I heard about user - security policies but I don't know any programmatic way
to work with it, also dont know what and how to do....

Any pointers/help or your guidance will be very much helpful to me

Thanks in Advance,

Mahesh Devjibhai Dhola
"Empower yourself...."
Jan 13 '06 #1
9 1949
Hi Mahesh!

(removed wrong groups)...
1. When a PC starts, my software should come up directly without any user
interaction.
Write a service:
http://www.codeproject.com/system/ServiceBase.asp

2. Only my software will be accessible to the user and they will not be able
to access anything from Windows - nothing at all.
3. A super user can access the software as well as the full windows


Only create one user-account (admin)...
--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
Jan 13 '06 #2
you could use a service, but this does not prevent someone from logging off
or starting a new process by ctrl alt del, selecting File->new task manager
and selecting 'new process' from the menu.
also, placing your app full screen does not prevent someone from pressing
the windows key to show the start menu, so some problems remain.

another solution is to replace the windows shell. for more info see
http://shellcity.net/

that way, only your application would be started, and not the windows shell
with the desktop, explorer, ...
some googling should reveal more articles about this topic.

kind regards,
Bruno.

"Jochen Kalmbach [MVP]" <no********************@holzma.de> wrote in message
news:es**************@TK2MSFTNGP09.phx.gbl...
Hi Mahesh!

(removed wrong groups)...
1. When a PC starts, my software should come up directly without any user
interaction.


Write a service:
http://www.codeproject.com/system/ServiceBase.asp

2. Only my software will be accessible to the user and they will not be
able
to access anything from Windows - nothing at all.
3. A super user can access the software as well as the full windows


Only create one user-account (admin)...
--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/

Jan 13 '06 #3
Hi Bruno!
you could use a service, but this does not prevent someone from logging off
or starting a new process by ctrl alt del, selecting File->new task manager
and selecting 'new process' from the menu.
If no-one can logon, why is there a chance to log-off???

another solution is to replace the windows shell. for more info see
http://shellcity.net/

that way, only your application would be started, and not the windows shell
with the desktop, explorer, ...


But if a user is admin or has apropriate right on the registry it does
not really help you...
The only solution is to remove all accounts except the "admin-account"
and let your program run as service...
--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
Jan 13 '06 #4
> The only solution is to remove all accounts except the "admin-account" and
let your program run as service...


i agree with you 100% in everything.
the only snag is that i had the impression that his application runs with a
user interface
"Only my software will be accessible to the user"

while it is possible to run services with a GUI, it is discouraged by
microsoft.
that doesn't prevent you from doing it of course. i have done it myself on
one occasion where it was required by the customer.

the problem that came up is that it is apparently not possible to show a
user interface on top of the 'Logon' screen. as soon as someone logs on the
service GUI appears. as soon as the user logs off, it disappears again.
i didn't find a workaround for this, but in my situation it was not
important.

that is why i think progamming a service is not going to solve his problem.

another approach would be to replace the explorer with IE and run the
application as a kiosk style web application. this is documented in MSDN.

kind regards,
Bruno.
Jan 13 '06 #5
Mahesh,

What you are looking for is a kiosk app. I would do a google search on
it (and maybe windows as well) and see what that turns up. It should give
you some information you are looking for.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mahesh Devjibhai Dhola" <dh*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi all,
The following are my need:
1. When a PC starts, my software should come up directly without any user
interaction.
2. Only my software will be accessible to the user and they will not be
able
to access anything from Windows - nothing at all.
3. A super user can access the software as well as the full windows

The windows OS may be windows 2k, windows XP or windows 2k3.

Temp solution:
I can place my software in start-up and will make it full screen, without
any control buttons like minimize, maximize, close, resize etc so user
will
see always my software at start up.
Problems: Some one can restart PC and in Safe-mode or other options they
can
use and they may access windows and if I am disabling all these options
some-how then when we need PC access for maintenance or some other
administrative purpose then it will not be available to me. So, for that I
will create a super user account in my software through which super user
can
access the window.
Also, if I make Alt + Ctrl + Del, Alt + Tab, Ctrl + Shift + Esc, Windows +
D, Windows + E, Windows + R etc keys disable then I will need to
manipulate
all these keys individually and may be there will be lot more.

So I need some way through which I can restrict the normal user to access
anything from windows and they will only be able to access my software
only - nothing else and a super user can access the software as well as
normal windows access too - and all I want to do programmatically and if
possible using only C# - but its not hard requirement - I can use other
languages too.

I heard about user - security policies but I don't know any programmatic
way
to work with it, also dont know what and how to do....

Any pointers/help or your guidance will be very much helpful to me

Thanks in Advance,

Mahesh Devjibhai Dhola
"Empower yourself...."

Jan 13 '06 #6

"Bruno van Dooren" <br**********************@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
|> The only solution is to remove all accounts except the "admin-account"
and
| > let your program run as service...
|
| i agree with you 100% in everything.
| the only snag is that i had the impression that his application runs with
a
| user interface
| "Only my software will be accessible to the user"
|
| while it is possible to run services with a GUI, it is discouraged by
| microsoft.
| that doesn't prevent you from doing it of course. i have done it myself on
| one occasion where it was required by the customer.
|
| the problem that came up is that it is apparently not possible to show a
| user interface on top of the 'Logon' screen. as soon as someone logs on
the
| service GUI appears. as soon as the user logs off, it disappears again.
| i didn't find a workaround for this, but in my situation it was not
| important.
|
| that is why i think progamming a service is not going to solve his
problem.
|
| another approach would be to replace the explorer with IE and run the
| application as a kiosk style web application. this is documented in MSDN.
|
| kind regards,
| Bruno.
|
|

It's not only discouraged, Vista no longer supports it. Services do run in a
non-interactive user context, the user's profile is not loaded, that means
you have to enable "interact with the desktop" and run as localsystem and
you have to load the users profile and the environment block, you need to
disable all controls that could allow the user to access the desktop (the
shell). Sure you can replace the shell as well. The largest drawback of this
all is if the application crashes, it returns control to the desktop (the
shell) but the user runs as localsystem (SYSTEM), so make sure your shell is
really restricted.

Willy.


Jan 13 '06 #7
Try this out. It's in VB but I'm sure you can figure it out.
http://vbaccelerator.com/home/VB/Cod...ps/article.asp
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:ep**************@TK2MSFTNGP09.phx.gbl...
Mahesh,

What you are looking for is a kiosk app. I would do a google search on
it (and maybe windows as well) and see what that turns up. It should give
you some information you are looking for.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mahesh Devjibhai Dhola" <dh*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi all,
The following are my need:
1. When a PC starts, my software should come up directly without any user
interaction.
2. Only my software will be accessible to the user and they will not be
able
to access anything from Windows - nothing at all.
3. A super user can access the software as well as the full windows

The windows OS may be windows 2k, windows XP or windows 2k3.

Temp solution:
I can place my software in start-up and will make it full screen, without
any control buttons like minimize, maximize, close, resize etc so user
will
see always my software at start up.
Problems: Some one can restart PC and in Safe-mode or other options they
can
use and they may access windows and if I am disabling all these options
some-how then when we need PC access for maintenance or some other
administrative purpose then it will not be available to me. So, for that
I
will create a super user account in my software through which super user
can
access the window.
Also, if I make Alt + Ctrl + Del, Alt + Tab, Ctrl + Shift + Esc, Windows
+
D, Windows + E, Windows + R etc keys disable then I will need to
manipulate
all these keys individually and may be there will be lot more.

So I need some way through which I can restrict the normal user to access
anything from windows and they will only be able to access my software
only - nothing else and a super user can access the software as well as
normal windows access too - and all I want to do programmatically and if
possible using only C# - but its not hard requirement - I can use other
languages too.

I heard about user - security policies but I don't know any programmatic
way
to work with it, also dont know what and how to do....

Any pointers/help or your guidance will be very much helpful to me

Thanks in Advance,

Mahesh Devjibhai Dhola
"Empower yourself...."


Jan 13 '06 #8
Me
Any thoughts on if this works on PDA devices (PPC and/or WinCE)? I gave it a
quick try and got some errors - chopped up your code to remove all the
unsupported stuff I could find and then got an unsupported exception in
CreateDesktop().

Thanks

"Rocky" <no*****@nowhere.com> wrote in message
news:eK**************@TK2MSFTNGP11.phx.gbl...
Try this out. It's in VB but I'm sure you can figure it out.
http://vbaccelerator.com/home/VB/Cod...ps/article.asp
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in message news:ep**************@TK2MSFTNGP09.phx.gbl...
Mahesh,

What you are looking for is a kiosk app. I would do a google search
on it (and maybe windows as well) and see what that turns up. It should
give you some information you are looking for.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mahesh Devjibhai Dhola" <dh*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi all,
The following are my need:
1. When a PC starts, my software should come up directly without any
user
interaction.
2. Only my software will be accessible to the user and they will not be
able
to access anything from Windows - nothing at all.
3. A super user can access the software as well as the full windows

The windows OS may be windows 2k, windows XP or windows 2k3.

Temp solution:
I can place my software in start-up and will make it full screen,
without
any control buttons like minimize, maximize, close, resize etc so user
will
see always my software at start up.
Problems: Some one can restart PC and in Safe-mode or other options they
can
use and they may access windows and if I am disabling all these options
some-how then when we need PC access for maintenance or some other
administrative purpose then it will not be available to me. So, for that
I
will create a super user account in my software through which super user
can
access the window.
Also, if I make Alt + Ctrl + Del, Alt + Tab, Ctrl + Shift + Esc, Windows
+
D, Windows + E, Windows + R etc keys disable then I will need to
manipulate
all these keys individually and may be there will be lot more.

So I need some way through which I can restrict the normal user to
access
anything from windows and they will only be able to access my software
only - nothing else and a super user can access the software as well as
normal windows access too - and all I want to do programmatically and if
possible using only C# - but its not hard requirement - I can use other
languages too.

I heard about user - security policies but I don't know any programmatic
way
to work with it, also dont know what and how to do....

Any pointers/help or your guidance will be very much helpful to me

Thanks in Advance,

Mahesh Devjibhai Dhola
"Empower yourself...."



Jan 13 '06 #9
Mahesh Devjibhai Dhola wrote:
Also, if I make Alt + Ctrl + Del, Alt + Tab, Ctrl + Shift + Esc, Windows +
D, Windows + E, Windows + R etc keys disable then I will need to manipulate
all these keys individually and may be there will be lot more.


I can strongly recommend KCSDK from Meliora Software, which does exactly
what you want. I have very good experience with it (with a kiosk
application that we developed). It can disable any key combination
(Ctrl+Esc, Ctrl+Alt+Del, Alt+Tab):

http://www.meliorasoft.com/kits/keyboard/index.php

Tom
Jan 19 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

383
by: John Bailo | last post by:
The war of the OSes was won a long time ago. Unix has always been, and will continue to be, the Server OS in the form of Linux. Microsoft struggled mightily to win that battle -- creating a...
22
by: Stan Weiss | last post by:
I have a program writeen in Microsoft QC 2.5 for DOS which has a very simple interface of using printf and sscanf also gets and puts. Is there an easy way to convert this to Window? Thanks Stan
1
by: Chris | last post by:
Hi, New to C# programming. I'm trying to implement some simple security in my website. Basically a user cannot surf to secured aspx pages simply by accessing them directly through the address...
6
by: Jeremy S. | last post by:
Sorry if this is too far OT - I posted this in the IIS group and got no response - so here goes: What would be a good or recommended way to make a Web site in IIS6 inaccessible to users on the...
10
by: Just Me | last post by:
If I periodically check to see if the floppy is ready, the drive will each time make a little noise. I've been up against this before and could never find a way to check to see if the floppy...
5
by: Mahesh Devjibhai Dhola | last post by:
Hi all, The following are my need: 1. When a PC starts, my software should come up directly without any user interaction. 2. Only my software will be accessible to the user and they will not be...
5
by: Chris Gage | last post by:
I'm a longtime *nix guy and am fairly comfortable "over there" although I am a developer and not a sysadmin, mostly J2EE stuff. I recently got the Microsoft "Action Pack" as a partner. It has...
60
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I prompt a "Save As" dialog for an accepted mime type?...
0
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: List of autostart locations Linked from the Original article- "Windows Autorun FAQs: Description". Que: Can you list all the autostart locations for windows? Ans: Here is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.