does someone have an example code for how to prevent .exe files to be started?
Something like this might work:
For Each OSKInstance As Process In Process.GetProcessesByName("OSK").ToArray
OSKInstance.Kill()
Next
But that might be resource intense as a while loop is running all the time. Is there a smarter way to lock an .exe?
Found the code: