DWORD GetWindowProcessID( );
See GetWindowThreadProcessID in the Win32 SDK.
Remarks
Retieves the identifier of the process that created the window.
CWindow Overview | Class Members
See Also CWindow::GetWindowThreadID