Passing a pointer to a local variable to another process works sometimes and not others
问题 A while back I wrote a program that lets you pick and modify windows. It uses WindowFromPoint() to get a handle to the window under the mouse cursor and calls GetWindowText() on that to get the window’s title. This works just fine. I then added the ability to get the title of columns of a list-control. The problem is that unlike GetColumnWidth() which returns the width, there is no corresponding function to get the title. Instead, getting the title of the column header requires passing a