Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as text by A ( 17 years ago )
CHAR name[MAX_PATH]="ET.exe";
int StatusET()
{  
	ET=NULL;
 	hSnap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0);
	ZeroMemory(&proc,sizeof(proc));
	proc.dwSize=sizeof(proc);
	if(Process32First(hSnap,&proc)){
		while (Process32Next(hSnap,&proc)){
			if(lstrcmpi(name,proc.szExeFile)==0){
				HH=proc.th32ProcessID;				
				ET=OpenProcess(PROCESS_ALL_ACCESS,TRUE,HH);
				return 1;
				break;
			}
		}
	}	
	if(ET==NULL)
	{		
		SendMessage(lists,LB_ADDSTRING,0,(LPARAM)"ET не найден!");
		return 0; 
	}
	return 1;
}

ну и потом 

int ReadPS(int address,HANDLE HWD){
	DWORD rw;
	ZeroMemory(&buf,5);
	ReadProcessMemory(HWD,(void*)address,(void*)&buf,1,&rw);
	return 1;
}

 

Revise this Paste

Your Name: Code Language: