Click to See Complete Forum and Search --> : Need VB to Control Windows Enviroment
Ron
February 9th, 2000, 11:53 AM
I would like to take control of the windows enviroment to keep the user from using any programs other than the ones I have created for them. This is going to be used on public computers and I don't want any problem, Viruses or anything else. Which Lib do I use for this and what controls do I use. I have tried using the user32 lib with the SetWindowPos function. but I think I need alittle more than that. Please, if someone could point me in the right direction I would greatly appreciate it. Thanks, Ron
Lothar Haensler
February 10th, 2000, 01:22 AM
I'd like to suggest a completely different approach: use Windows NT Server Terminal Server Edition or Win2K,
place you apps on the Terminal Server and have the users run your app from there.
Now, you really don't have to care much about the client computers. Users won't have access to your server platform.
mbennett
February 10th, 2000, 09:04 AM
Private Sub Form_Load()
Call SystemParametersInfo(SPI_SCREENSAVERRUNNING, True, "1", 0)
End Sub
Private Sub Form_Unload(Cancel As Integer)
Call SystemParametersInfo(SPI_SCREENSAVERRUNNING, False, "1", 0)
End Sub
If you use this code and set the Forms ControlBox properity to false. Also set the Form Minbutton and MaxButton to False. The VB program will take complete control of the system. However, you'll need
to make create a way to end the program and or minamize it to reach the system. I use a text box
with several passwords using a If Then statment to select what function I need.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.