<洁洁有关问题> 请教下高手们,怎么通过一个窗口句柄获取该进程的名称,多谢

<洁洁问题> 请问下高手们,如何通过一个窗口句柄获取该进程的名称,谢谢啊
rt..

------解决方案--------------------
友情帮顶
------解决方案--------------------
The GetWindowThreadProcessId function retrieves the identifier of the thread that created the specified window and, optionally, the identifier of the process that created the window.

DWORD GetWindowThreadProcessId(
HWND hWnd,
LPDWORD lpdwProcessId );