Code:
.386
.model flat, stdcall
option casemap: none
include c:\masm32\include\kernel32.inc
include c:\masm32\include\user32.inc
include c:\masm32\include\windows.inc
includelib c:\masm32\lib\kernel32.lib
includelib c:\masm32\lib\user32.lib
.data?
hInstance dd ?
hIcon dd ?
hCursor dd ?
hSnapshot dd ?
processentry PROCESSENTRY32 <>
.code
start: invoke GetModuleHandle, NULL
mov hInstance, eax
invoke LoadIcon, hInstance, IDI_APPLICATION
mov hIcon, eax
invoke LoadCursor, NULL, IDC_ARROW
mov hCursor, eax
invoke CreateToolhelp32Snapshot, TH32CS_SNAPPROCESS, NULL
mov hSnapshot, eax
invoke Process32First, hSnapshot, addr processentry
juhu: invoke MessageBox, 0, addr processentry.szExeFile, addr processentry.szExeFile, MB_OK
invoke Process32Next, hSnapshot, addr processentry
cmp eax, 0
jne juhu
invoke CloseHandle, hSnapshot
invoke ExitProcess, eax
end start
wer kann mir sagen, was der Fehler ist? über eine Funktion und LOCAL processentry
