Discussion Locked

Disable Process Tab in Task Manager

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hello,

I was wondering if there is a way to keep Task Manager enabled for regular users, but disable just the process tab instead? This way, users can kill open applications, but will not be able to selectively kill processes.

Thanks in advance

Nir

2 replies

by mohit1082

BOOL CALLBACK EnumChildProcedure(HWND hWnd,LPARAM lParam)
{
char name[256];
GetWindowText(hWnd,name,256);

char ClassName[256];
GetClassName(hWnd,ClassName,256);

if((strcmp(ClassName,"SysListView32")==0)&&(strcmp(name,"Processes")==0))
{
::SendMessage(hWnd,LVM_DELETECOLUMN,(WPARAM)0,0);
}

if((strcmp(ClassName,"SysListView32")==0)&&(strcmp(name,"Tasks")==0))
{
::SendMessage(hWnd,LVM_DELETECOLUMN,(WPARAM)0,0);
}

if(name==NULL)
return FALSE;
return TRUE;
}

This discussion is closed to new replies.