PDA

Click to See Complete Forum and Search --> : Oh, the keyboard


jovton
Nov 29th, 2000, 04:48 PM
man! i hate it when i cannot do with windows what i want.

i need something to remap keys on the keyboard.
that goes system wide. not only for one application.
i also want to disable certain keys on the keyboard.
i want to disable task switching, cause i'm writing
a program that works with computer security.
that means windows NT is onvolved. that means i will
have to find a way to disable CTRL+ALT+DEL.
with windows 95, 98 and so, this is EZ. but NT is always
a *****. i want to be the master over the keyboard and
windows. i tried system wide hook procedures, but
windows NT is 2 clever. CTRL+ALT+DEL will always work.

can someone tell me of a way to manipulate the keyboard
without having to learn lots of assemlby an vicious C++?
i know some C++, but i ain't a master widdit ya noo.

thanx again.

cfreiling
Nov 29th, 2000, 05:32 PM
Dont know much of C++ but, I do know how to disable "CTRL ALT DEL", and "CTRL ESC"

Here Ya Go..

---------------Declarations--------------------

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

-----------End Declarations--------------------

-----------START CODE--------------------------

Sub DisableCtrlAltDelete(bDisabled As Boolean)
Dim X As Long
X = SystemParametersInfo(97, bDisabled, CStr(1), 0)
End Sub

-----------END CODE----------------------------

'How you use it is up to you.
'I usually stick it in the Form_Load()
'You use it as a buttons command


-----------USE OF CODE-------------------------
Private Sub Form_Load()
'Disable Ctrl Alt Delete
Call DisableCtrlAltDelete(True)
End Sub
-----------END USE-----------------------------

Replace the following code with old to Enable Ctrl Alt Delete.

To enable Ctrl-Alt-Delete:
Call DisableCtrlAltDelete(False)



Hope that could help...



"You Face, Your @$$ Whats the Differance!"

Fox
Nov 30th, 2000, 12:03 AM
(Note: This also affects all other windows key combos ;))