CWindow::GetWindowProcessID

DWORD GetWindowProcessID( );

See GetWindowThreadProcessID in the Win32 SDK.

Remarks

Retrieves the identifier of the process that created the window.

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(hWndFoo);
DWORD dwID = myWindow.GetWindowProcessID();

CWindow OverviewClass Members

See Also   CWindow::GetWindowThreadID