CWindow::GetWindowProcessID
更新 : 2007 年 11 月
ウィンドウを作成したプロセスの識別子を取得します。
DWORD GetWindowProcessID( ) throw();
解説
Windows SDK の「GetWindowThreadProcessID」を参照してください。
使用例
//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