Currently for XP, Disables Mouse movement and keyboard input.

PHP Code:
using System.Runtime.InteropServices;

 [
DllImportAttribute("user32.dll"EntryPoint "BlockInput")]
        [return:
MarshalAsAttribute(UnmanagedType.Bool)]
        public static 
extern bool BlockInput([MarshalAsAttribute(UnmanagedType.Bool)] bool fBlockIt);

public static 
void BlockInput(TimeSpan span) {
  try { 
    
NativeMethods.BlockInput(true);
    
Thread.Sleep(span);
  } 
finally {
    
NativeMethods.BlockInput(false);
  }