다음을 통해 공유


CWindow::GetWindowProcessID

Retrieves the identifier of the process that created the window.

DWORD GetWindowProcessID( ) throw();

Remarks

See GetWindowThreadProcessID in the Windows SDK.

Example

//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();

Requirements

Header: atlwin.h

See Also

Concepts

CWindow Class

CWindow Members

CWindow::GetWindowThreadID