- List View
- Posted by CapStick on January 9th, 2004
Using
ListView_GetItemText(hwndChild,4,4,szitemtext,size of(szitemtext));
This crashes the Target App
Trying to get a text item from another applications ListView
It would seem from all my Googling etc that it could possibly be done via
shared memory through memory mapping because it is a question of trying to
obtain data from an unowned process.
Nowhere can i find a definitive answer.
Any Pointers ???
Please. (heads spinnig right round on this one)
BTIA
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
- Posted by Raymond Chen on January 9th, 2004
On Fri, 9 Jan 2004 02:14:14 -0000, "CapStick"
<lol@capljones81.fsnet.co.uk> wrote:
There is no automatic marshalling of messages >= WM_USER. If you
don't want to use shared memory, you can instead of Active
Accessibility, which does all the shared memory goo for you.
- Posted by Sasha Goldshtein on January 9th, 2004
You could, if you're VERY anxious to get it to work, use the following
guidelines:
1. Open a handle to the other process using OpenProcess and ensure that
you obtain the right to write to that process' memory and to read from it.
2. Allocate memory (using VirtualAllocEx) within that process' memory space.
3. Obtain a pointer to that memory and pass it as the pointer to the
ListView_GetItemText macro.
4. Read the process memory at the specified address using ReadProcessMemory.
CapStick wrote:
- Posted by CapStick on January 9th, 2004
"Raymond Chen" <http://guest@weblogs.asp.net/oldnewthing/> wrote in message
news:75fsvv0jo9uchvhkur58ct7s10jm0mq9rc@4ax.com...
Sorry but could you expand on this a little more.
I have no access to the programming
of the window from which i am trying to read a listed item.
Basicly i do not understand what Active Accessibility is.
BTIA Capstick
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
- Posted by CapStick on January 9th, 2004
Thanks Sarah
But, it appears on reading API help files
VirtualAllocEx only works for NT.
VirtualAlloc works in the Calling Process Only.
i need it on all platforms
However obtaining some Allocated memory from the other process would seem to
be a Logical Answer.
More Thinking <g>
"Sasha Goldshtein" <goldshtn@netvision.net.il> wrote in message
news:btmbfm$1js$1@news2.netvision.net.il...
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/31/2003
- Posted by Raymond Chen on January 10th, 2004
Check otu AccessibleObjectFromWindow()
On Fri, 9 Jan 2004 23:57:12 -0000, "CapStick"
<lol@capljones81.fsnet.co.uk> wrote:
- Posted by CapStick on January 10th, 2004
"Raymond Chen" <http://guest@weblogs.asp.net/oldnewthing/> wrote in message
news:ncivvv8rc31gdtfpqm378ss2i80n5hkn71@4ax.com...
I checked this out in Microsoft Web pages Raymond
It would appear on the face of it that it could indeed be possible to read
listview in another App useing Active Accessibility
All i wanted was to be able to read 1 word from one column of another App,s
Listview.
I have decided to drop this issue for now and look at it seperately
another time.
I thank you and any others for your help
Capstick.
Remove cap and call me lo to email me
lol@capljones81.fsnet.co.uk
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 30/12/2003
- Posted by Alex Blekhman on January 13th, 2004
"CapStick" <lol@capljones81.fsnet.co.uk> wrote in message
news:btl2n0$h9n$1@newsg3.svr.pol.co.uk...
Look for LV2Clip sample by Jeffrey Richter
<http://www.microsoft.com/msj/0997/win320997.aspx>