CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 1998
    Posts
    20

    Need VB to Control Windows Enviroment

    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


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Need VB to Control Windows Enviroment

    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.


  3. #3
    Join Date
    Jan 2000
    Location
    Georgia
    Posts
    5

    Re: Need VB to Control Windows Enviroment

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured