CWindow::GetWindowProcessID
Извлекает идентификатор процесса, который создал окно.
DWORD GetWindowProcessID( ) throw();
Заметки
См. раздел GetWindowThreadProcessID в Windows SDK.
Пример
//The following example attaches an HWND to the CWindow object and
//calls CWindow::GetWindowProcessID() to retrieve the id of the
//process that created the window
CWindow myWindow;
myWindow.Attach(hWnd);
DWORD dwID = myWindow.GetWindowProcessID();
Требования
Header: atlwin.h