【发布时间】:2013-01-15 19:15:53
【问题描述】:
我有这个代码:
HWND WindowHandle;
WindowHandle = FindWindowA( WindowClass, WindowName );
if( WindowHandle != NULL)
{
// here I want to populate a listbox with the window's information like
// its process name and PID, executable file name, and its window title.
}
我已经知道如何获取窗口标题,SendMessage(); 和 WM_GETTEXT,但我想知道如何获取它的进程名称和 PID,以及可执行文件的位置和名称。
谁能帮帮我?
请注意,我正在使用 C++ MFC。
【问题讨论】:
标签: c++ mfc window information-extraction