S
S
Sergey2017-05-25 15:30:33
Programming
Sergey, 2017-05-25 15:30:33

How to hide a process in Visual Studio 2017 in Basic .NET?

We have a training center in the city, a problem arose that all the children working at the computer periodically install unnecessary programs and games and go online. Decided to make a shell instead of explorer. There were problems hiding the process from the task manager, and blocking hot keys (Ctrl + Alt + Del, Ctrl + Shift + Esc, Win + R, Alt + F4, etc.), which can disable the application. Tell me, how best to do all this and maybe there are ready-made code examples?
Thanks in advance for any hints or links

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2017-06-29
@goodwin74

In general, the solution is if anyone is interested. I am writing this for educational purposes, so that those who have a similar problem with children in schools or in educational centers like ours, who begin to mess around on computers, can stop this lawlessness.
The shell is changed as follows in the registry:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"Shell"="C:\shell_protection.exe"
where C:\shell_protection.exe is your path to the shell.
Locking Win combinations (only works after reboot):
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00 ,00,00,00,5B,E0,00,00,5C,E0,00,00,00,

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"DisableTaskMgr"=dword:00000001

And at the end, so that the children do not close the ALT+F4 shell or something else, we hang the code on the FormClosing event:

If (e.CloseReason = CloseReason.UserClosing) Then
            e.Cancel = True
            MessageBox.Show("Невозможно закрыть это приложение", "Защита", MessageBoxButtons.OK, MessageBoxIcon.Error)
        End If
    End Sub

E
Eugene, 2017-05-25
@iamd503

Install Linux, or, as mentioned above, make an account with limited access

R
Roman, 2017-05-25
@yarosroman

Sandbox not channeling?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question