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 ALT+CLRT+ 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