How to block the computer via code?

Asked

Viewed 400 times

2

I’m trying to find a way to block the user’s computer and, only one form can be active (login form), after the user correctly type the login and password the computer would be unlocked. You can do it?

All the codes I’m finding talk about blocking the station, and that’s not what I’m looking for.

  • 3

    Set "Block the user’s computer", would it prevent the user from doing any other action? open other programs?

  • The user should not be able to do anything that stays out of my form, I’ve seen applications like this. But blocking access to the internet is enough.

1 answer

2


What you want is to create an application in Kiosk Mode. This is not simple to implement. You should use the library of the system user32.dll to lock all keys and shortcuts that may cause the application to exit and hide the Windows taskbar and buttons.

I have already tried to develop an application of the type using an article from Codeproject, but the project did not go forward. In the example used in the article, the project was developed focusing on Windows XP and Windows 7 computers. You have to check if it would work with more current operating systems like Windows 8, 8.1 and 10.

Here at the Sopt we’ve only had one question with this subject.

Stackoverflow has a little more content:

Browser other questions tagged

You are not signed in. Login or sign up in order to post.