FiveWin 9.03 + xHarbour !!
Anderson,
GetWindowThreadProcessId()
Anderson,
GetWindowThreadProcessId()
but and the name?
Anderson,
DWORD GetWindowThreadProcessId(
HWND hWnd, // handle of window
LPDWORD lpdwProcessId // address of variable for process identifier
);
lpdwProcessId Points to a 32-bit value that receives the process identifier
Then you can use GetModuleFileName() with that ProcessId.