Compartilhar via


CWindow::GetWindowProcessID

Recupera o identificador do processo que criou a janela.

DWORD GetWindowProcessID( ) throw();

Comentários

See GetWindowThreadProcessID in the Windows SDK.

Exemplo

//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

Cabeçalho: atlwin.h

Consulte também

Referência

Classe CWindow

CWindow::GetWindowThreadID

Outros recursos

CWindow membros