|
-
Mar 19th, 2000, 06:14 PM
#1
Thread Starter
Hyperactive Member
hi,
I tried using the SystemParameterInfo API to disable ctrl+alt+del and the WIndows key.
The code i used was:
SystemParametersInfo(97, bDisabled, ByVal 0&, 0)
I also tried:
SystemParametersInfo(97, bDisabled, CStr(1), 0)
Where bDisabled was true for disabling and false for enabling.
The former caused the system to hang(I had to restart everytime) and the latter gave me an error saying that "VB has performed an illegal operation and will be shut down"
Can someone help me out here?
Im using vb6 with windows95.
Thanks in advance,
Ramya.
P.S. Is there any way this can be done with NT???
-
Mar 19th, 2000, 09:29 PM
#2
Frenzied Member
Are you sure you've declared it right
I've just found the tip and tried it on my machine(VB6,Win98) and it works fine, here's the code I used
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
Sub DisableCtrlAltDelete(bDisabled As Boolean)
Dim X As Long
X = SystemParametersInfo(97, bDisabled, CStr(1), 0)
End Sub
-
Mar 20th, 2000, 12:26 AM
#3
Lively Member
Apparently, there's no way to do this on NT (none that we know anyway) 
Simon
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
|