|
-
Oct 5th, 2000, 08:58 AM
#1
Thread Starter
Lively Member
I am developing a password protection application and have nearly finished it but, I know its only a simple thing to do but cannot remember how to disable Ctrl Alt Del checking so that the user cannot cancel the program.
Can anyone help me with this?
Thankx in advance!
Ben
-
Oct 5th, 2000, 09:08 AM
#2
Junior Member
lucky 4 u i am also working on something similar (maybe i will send my app to u when i am finished
here is the code
put this in general declarations of form
Private Declare Function SystemParametersInfo Lib _
"user32" Alias "SystemParametersInfoA" (ByVal uAction _
As Long, ByVal uParam As Long, ByVal lpvParam As Any, _
ByVal fuWinIni As Long) As Long
paste this sub in the form
Sub DisableCtrlAltDelete(bDisabled As Boolean)
Dim X As Long
X = SystemParametersInfo(97, bDisabled, CStr(1), 0)
End Sub
and in your form load event type the following
Call DisableCtrlAltDelete (true)
that skould disable all windows key combinations includind Windows key , Alt+Tab and Ctrl+Esc.
Just remember to type set it to false when you unload the form or else you cannot use your windows key combinations until you restart.
Go Luke , and may the source be with you.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|