>I have an application that includes security checks to prevent users from accessing the Desktop without log in. I want to stop them from killing the program.Serious replies only.
This is a serious reply <*bg*>
For Win9X/ME you can trap it by enabling screen savers ( SystemParametersInfo API )
For NT4/2K/XP, there are several ways but none of the solution can be done from VFP not even from VB. The only solution is replacing GINA.DLL. If you want to experiment with this, setup one test (unused) machine because playing with GINA can make your computer unusable (very RISKY!!).
Platform SDK: Authentication (GINA)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secauthn/security/gina.aspAnother workaround is hooking or remote inject GINA.DLL. You can only do that by creating standard window DLL (system-wide).
Look here for Articles and sample code:
C++ Q&A: Typename, Disabling Keys in Windows XP with TrapKeys -- MSDN Magazine, September 2002
http://msdn.microsoft.com/msdnmag/issues/02/09/CQA/default.aspxTrapping CtrlAltDel;Hide Application in Task List on Win2000/XP
http://www.codeproject.com/useritems/preventclose.aspRegards
Herman