Question

I want to make a test conducting desktop application and I want to restrict the user to be unable to open any other application once the test is started.

Is there any way or method through which once test is started, the user can not move to any other application or start any other application for that particular time.

If, Yes, what are the things that needs to be restricted.

Was it helpful?

Solution

Not sure if this will help, but here's a bit of info. Blocking of process creation in a legal way is possible by writing a small device driver. This driver can place a hook on process creation through the driver API PsSetCreateProcessNotifyRoutineEx.

Of course you would have to implement another driver interface to control when it should start blocking process creation and when to stop doing so. This can be done through what is called driver IoCtls.

WinDDK has plenty of sample code to leverage on, in case you want to pursue this path.

HTH.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top