Unable to use LVM_GETITEMTEXT without target application crashing in C++

后端 未结 1 1749
时光取名叫无心
时光取名叫无心 2021-01-14 00:43

I\'m trying to capture data from a SysListView32 class (according to Spy++) from another application. Sending a LVM_GETITEMCOUNT message to this handle always returns the co

相关标签:
1条回答
  • 2021-01-14 01:40

    Your problem is that since the list view exists in another process, the memory you allocate is not valid in that other process. I refer you to an article over at The Code Project which offers a solution.

    What's more, you do not appear to have allocated any memory for lpText so it would fail in your own process.

    0 讨论(0)
提交回复
热议问题