SendMessage TreeView TVM_GETITEM crashes that process
问题 I am trying to access a TreeView running in another process. Many of the tree view messages work correctly. However, trying to use the TVM_GETITEM causes that other process to crash. The code below is a simple program that illustrates the crash. To get it to run, you will need some CHM help file. I'm using a CHM help file because hh.exe uses a TreeView control for the table of contents. The goal is to be able to get the a tree node's text. using System; using System.Collections; using System