local lvi:LVITEM
local buffer[6]:BYTE
mov lvi.iItem, 0
mov lvi.iSubItem, 0
mov lvi.imask, LVIF_TEXT
lea ecx, buffer
mov lvi.pszText, ecx
mov lvi.cchTextMax, 6

lea eax, lvi
push eax
push 0
push LVM_GETITEM
push hListv
call SendMessage
PrintString buffer ;Print 2445 -> ThreadID

lea ecx, buffer
push 0
push 0
push WM_QUIT
push ecx ;Error here because its a buffer [6]:BYTE. a dword is needed?
call PostThreadMessage

how its can function please ?
Thx a lot :)
Posted on 2006-08-23 09:04:57 by kaos

; Convert your Ascii ThreadID into a dword : "12324",0 -> 12324
invoke atodw, addr buffer
; Use return value in call
invoke PostThreadMessage, eax, WM_QUIT,0,0
Posted on 2006-08-23 09:12:47 by JimmyClif