c# - Getting ListView item from another process -
i want item text listview in process - not process.
example: there listview of running processes, , want name of first value: 
in case, string contain hamachi2svc.
this try: (i built struct similar listviewitem)
stringbuilder sb = new stringbuilder(260); lvitem lv = new lvitem(); lv.cchtextmax = 260; lv.mask = 1; lv.iitem = 1; lv.isubitem = 0; intptr hprocess = intptr.zero; intptr pr = virtualallocex(hprocess, intptr.zero, intptr.zero + 260, (uint)0x1000, (uint)4); lv.psztext = pr; intptr plvitem = virtualallocex(hprocess, intptr.zero, (intptr.zero+marshal.sizeof(lv)), (uint)0x1000, (uint)4); sendmessage(handle,0x102d,intptr.zero, plvitem); bool = readprocessmemory(hprocess, pr, sb, 260,1); // -sb supposed conatin item value, it's not :( if have idea, great.
Comments
Post a Comment