Forum: Object-Pascal / Delphi-Language
Delphi
by himitsu,
11. Feb 2010
strcmp ist aber
if Exename = pe32.szExeFile then
ist so bestimmt übersichtlicher
if AnsiSameText(xModule.szModule, szModule) then
Forum: Object-Pascal / Delphi-Language
Delphi
by himitsu,
11. Feb 2010
Function GetModuleBaseAddress(dwProcID: Dword; szModule: PChar): LongWord;
Function GetProcessOf(exename: PChar; var process: PROCESSENTRY32): LongBool;
PS: C++ kennt die delphieigenen dynamischen Arrays nicht, also kann "array of" niemals stimmen.
Dieses geht auch, da der String Intern teilweise wie ein PChar aussieht.
Function GetProcessOf(const exename: String; var process:...