本文主要是介绍禁止 CTRL+ALT+DEL,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
在win98 里可以用
Public Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, ByRef lpvParam As Any, ByVal fuWinIni As Long) As Long
但在xp里就。。。。
呵呵,有一个思路用
Public Declare Function RegEnumKeyEx Lib "advapi32.dll" Alias "RegEnumKeyExA" (ByVal hKey As Long, _
ByVal dwIndex As Long, ByVal lpName As String, lpcbName As Long, ByVal lpReserved As Long, _
ByVal lpClass As String, lpcbClass As Long, lpftLastWriteTime As FILETIME) As Long
Public Declare Function RegOpenKey Lib "advapi32.dll" Alias "RegOpenKeyA" (ByVal hKey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
Public Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long) As Long
Public Const HKEY_CLASSES_ROOT = &H80000000
Public Const HKEY_CURRENT_CONFIG = &H80000005
Public Const HKEY_CURRENT_USER = &H80000001
Public Const HKEY_DYN_DATA = &H80000006
Public Const HKEY_LOCAL_MACHINE = &H80000002
Public Const HKEY_USERS = &H80000003
Public Const ERROR_NO_MORE_ITEMS = 259&
Public Const ERROR_SUCCESS = 0&
修改注册表,就可以了!
我研究下先!呵呵!
禁止使用任务管理器的子键:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\windows\currentversion\policies\system
键值:Disabletaskmgr(dword) 0(禁止)
这篇关于禁止 CTRL+ALT+DEL的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!