Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I prevent Ctrl+Alt+Del in my FoxPro application
Message
De
27/07/2004 08:32:10
 
 
À
27/07/2004 04:19:07
Joe Kinyua
Micronet Solutions
Nairobi, Kenya
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00928201
Message ID:
00928241
Vues:
19
>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.asp


Another 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.aspx

Trapping CtrlAltDel;Hide Application in Task List on Win2000/XP
http://www.codeproject.com/useritems/preventclose.asp

Regards
Herman
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform