How to stop this message when pressing CTRL + ALT + DEL?

I have the following code to disable the Windows XP task manager, but it still displays the message "Task manager is disabled", and we must click ok

how can i turn off this message

I want that when someone presses CTRL + ALT + DEL , nothing happens even in the absence of a message dialog.

HKEY hMykey; DWORD pDWDisp; unsigned char cData[1]; cData[0]='1'; LONG lRes = RegCreateKeyEx(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\system", 0,"DisableTaskMgr",REG_OPTION_NON_VOLATILE,KEY_ALL_ACCESS, NULL,&hMykey,&pDWDisp); // Open a key for edit if(lRes != ERROR_SUCCESS) { MessageBox(0,"Error opening key","",MB_OK); exit(0);// Shutdown on fail }//End if lRes = RegSetValueEx(hMykey,"DisableTaskMgr",0,REG_DWORD, (LPBYTE)cData,sizeof(cData));// Add your key value if(lRes != ERROR_SUCCESS) { MessageBox(0,"Error saving record","",MB_OK); RegCloseKey(hMykey); exit(0);// Shutdown on fail }//End if 
+4
source share
1 answer

The CTRL + ALT + DEL key combination is intercepted and processed by Windows directly, is not translated into a message with a keystroke, and is not sent to the active window, like all other key combinations. This will allow Windows to show the security desktop interface, even if the machine has been compromised. Despite the fact that you can selectively disable certain functions of the desktop by manipulating the registry keys, you cannot get rid of the desktop itself.

EDIT:

Luna, I just noticed your previous attempt to ask this question . This strikes your customer with an overly detailed description of their requirements. Why does someone want to disable task manager while a regular Windows application is running? The only genuine scripts I can come up with for this are:

  • You are a network administrator and want to disable Task Manager on all your workstations. In this case, you should use Group Policy to disable it, and not hack the registry.
  • You are writing a kiosk app. I don't know much about kiosk apps, but I'm sure there is an official Windows API where you can control how they work. Use this instead.
+3
source

Source: https://habr.com/ru/post/1306091/


All Articles