|
-
Jan 22nd, 2000, 01:48 AM
#1
Thread Starter
PowerPoster
Declarations
Copy this code into the declarations section of your project.
Code:
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
Code
Code:
Sub DisableCtrlAltDelete(bDisabled As Boolean)
Dim X As Long
X = SystemParametersInfo(97, bDisabled, CStr(1), 0)
End Sub
Use
To disable Ctrl-Alt-Delete:
Code:
Call DisableCtrlAltDelete(True)
To enable Ctrl-Alt-Delete:
Code:
Call DisableCtrlAltDelete(False)
Regards,
------------------
- Chris
[email protected]
If it ain't broke - don't fix it 
[This message has been edited by chrisjk (edited 01-22-2000).]
-
Jan 22nd, 2000, 04:50 AM
#2
Junior Member
Thanks, but I know how to disable Cntrl+alt+del!
What I need is a way of DETECTING if the keys are pressed together, WHILE they are disabled! Understand?
Cheers 
David Richardson
-
Jan 22nd, 2000, 10:45 AM
#3
Thread Starter
PowerPoster
Sorry, I thought you wanted to detect when CTRL+DEL+ALT were pressed, so you could intercept and disable it.
You have to use system-wide SendKeys, otherwise known as some API function(s). Ask the API gurus here - they should be able to help.
Regards,
------------------
- Chris
[email protected]
If it ain't broke - don't fix it 
-
Jan 22nd, 2000, 12:48 PM
#4
Junior Member
I'm writing an app which disables Ctrl+Alt+Del. What I need is a way of detecting if the user presses these keys while they're disabled. Can anyone help?
Thanks 
David Richardson
-
Jan 22nd, 2000, 09:04 PM
#5
Junior Member
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
|