>In my project i want lock the mouse pointer and lock all the active window opend (ms word,internet explorer,and other application)and only if user gives the correct login name and password the above things should be enabled
>
Why not just use the Windows Login screen saver? This gets around akll the problems with VFP hooking all the controls...