I'm working on retrieving information from a listview from another program, however, I use this:

Code:
 ListView_GetItemText(hwnd,item,0,text,sizeof(text)); 


and the program with the listview crashes with a memory error. Anyone?

And on a side note, how would I find the hwnd of a window by only knowing part of the title?
like let's say the title is "mIRC wildcard"
and I just want to search for a window with "mIRC" in it...