How to block the computer via code?

2

I am trying to find a way to block the user's computer and only one form of my can be active (Login Form), after the user correctly enter the login and password the computer would be unlocked. Can you do that?

All the codes I'm thinking about are blocking the station, and that's not what I'm looking for.

    
asked by anonymous 27.07.2016 / 21:00

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 user32.dll system to block all keys and shortcuts that may cause the application to exit and hide the taskbar and Windows 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 in SOPt we have already had a question with this subject .

In StackOverflow you have a little more content:

27.07.2016 / 22:08