Link to home
Start Free TrialLog in
Avatar of samstarkey
samstarkey

asked on

Disable all windows functions whilst program is running

Is it possible to disable all windows functionality whilst my program is running?

run down:

On boot and auto logon my program will be the only application running, and will initialise via the registry run > settings.  Because of security measures (idiots who know a little and can knacker up your system) I only want select people to have access to windows (e.g. explorer etc) after authentication.  I have setup my own authentication methods, which also grant them access to various other sections of my app, but i'm not sure how to disable everything else prior to authentication.

e.g.

1) Standard user loggs on and only get access to frm1 and all other accesibility options are disabled (windows key, ctrl esc, etc)

2) administrator logs on, accesses the admin  area presses a button and drops into the windows desktop with all functions available

This will allow for INI files to be manually edited should this scenario be required.
The logon authentication and limitation is not a problem, it's the latter.

As i feel this question may include a lot of assistance and hard work i will deploy the maximum points!!
Avatar of kurian2z5
kurian2z5
Flag of India image

I searched on Google but came up with nothing.

I suggest you use GetCursorPos
and SetCursorPos so that the user cannot move the mouse out of the form.

Then disable Ctrl-Alt-Del and start menu using

Private Declare Function SystemParametersInfo Lib _
"user32" Alias "SystemParametersInfoA" (ByVal uAction _
As Long, ByVal uParam As Long, ByVal lpvParam As Any, _
ByVal fuWinIni As Long) As Long

Private Sub Form_Load()
    Dim X As Long
    X = SystemParametersInfo(97, True, CStr(1), 0)
End Sub
Avatar of samstarkey
samstarkey

ASKER

The cursor position is not a problem as i have maximized the forms and they are without borders so the user cannot minimize or move the form.

I tried your solution but it did not work.  Not under xp anyway
Yes there is absolutely no way to disable the system keys on XP.
Ill get back to you if i get more infomation.
When we had a need to lock down a computer for public use that we only wnated to run a web browser we used the Microsoft Management Console.

You can get to this by using Start\Run\MMC. Click on the FILE menu and  choose add\remove snap-in. Then click ADD and scroll down and select group policy and add it to the console. You can then set local policies and lock down the computer and users in almost any way you want.


Hope this helps some
ASKER CERTIFIED SOLUTION
Avatar of MatrixFreak
MatrixFreak

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Matrix,

This is exactly what i am looking for.

Thanks a bunch for your help.