A
A
Andrey2018-06-29 15:00:53
C++ / C#
Andrey, 2018-06-29 15:00:53

How to disable mouse and keyboard in c#?

I'm making a "program" in Vs in c# in which I need to block the mouse and keyboard, I found this code on the Internet 5b361f3c66c7a586635129.jpeg
But it gives a lot of errors.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2018-06-29
@freeExec

[DllImport("user32.dll")]
public static extern int BlockInput(int fBlock);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question