CWindow::GetWindowProcessID
Recupera el identificador de proceso que creó la ventana.
DWORD GetWindowProcessID( ) throw();
Comentarios
Vea GetWindowThreadProcessID en Windows SDK.
Ejemplo
//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();
Requisitos
encabezado: atlwin.h