Ver Mensaje Individual
  #5  
Antiguo 26-09-2008
Avatar de cHackAll
[cHackAll] cHackAll is offline
Baneado?
 
Registrado: oct 2006
Posts: 2.159
Reputación: 22
cHackAll Va por buen camino
Código Delphi [-]
uses TlHelp32;
 
function GetProcessImageFileName(dwProcessId: Cardinal): string overload;
var
 hSnapshot: Integer;
 ModuleEntry: TModuleEntry32;
begin
// Result := '';
 hSnapshot := CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, dwProcessId);
 if hSnapshot <> -1 then
  begin
   if Module32First(hSnapshot, ModuleEntry) then
    Result := ModuleEntry.szExePath;
   CloseHandle(hSnapshot);
  end;
end;
 
procedure TForm1.Button1Click(Sender: TObject);
begin
 ShowMessage(GetProcessImageFileName(666));
end;
__________________
RTFM > STFW > Foro > Truco > Post > cHackAll > KeBugCheckEx
Responder Con Cita