다음을 통해 공유


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

요구 사항

헤더: atlwin.h

참고 항목

참조

CWindow 클래스

CWindow::GetWindowThreadID