Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 702651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:44:40+00:00 2026-05-14T03:44:40+00:00

i have the following code to disable task manager of windows xp but it

  • 0

i have the following code to disable task manager of windows xp but it still displays a message the “task manager is disabled” and we have to press ok

how can i disable even this message ;

i want that when any one presses CTRL+ALT+DEL nothing happens even no 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
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T03:44:40+00:00Added an answer on May 14, 2026 at 3:44 am

    The key combination CTRL+ALT+DEL is intercepted and handled by Windows directly, not translated into a keypress message and sent to the active window like all other key combinations. This is to allow Windows to show the security desktop UI even if the machine has been compromised. Although you may be able to selectively disable certain features of the security desktop by manipulating registry keys, you will not be able to get rid of the desktop itself.

    EDIT:

    Moon, I’ve just noticed your previous attempt at asking this same question. This smacks of your client over-specifiying their requirements. Why would anyone want to disable Task Manager during the execution of a normal Windows application? The only genuine scenarios I can think of for this are:

    1. You are a network administrator and you want to disable Task Manager on all your workstations. In this scenario, you would use Group Policy to disable it, not a registry hack.
    2. You are writing a Kiosk application. I don’t know much about Kiosk applications, but I’m sure there is an official Windows API somewhere to control how they run. Use that instead.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code. Within the same block of code, I disable a
Guys i have used the following code to disable an option using jQuery (
How do I disable page? I have a following code written using scriptaculous/prototype. It
I have some code to enable/disable the Windows Aero service in Vista, and I
In the following code, I have been trying to disable the entry1 widget every
I am using the following code to disable the submit button $(input[type='submit']).attr(disabled, disabled); And
I Have following code: Controller: public ActionResult Step1() { return View(); } [AcceptVerbs(HttpVerbs.Post)] public
I have following Code Block Which I tried to optimize in the Optimized section
I have following code in my application: // to set tip - photo in
I have following code in my Application. Comments in my code will specify My

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.