次の方法で共有


CWindow::GetWindowProcessID

ウィンドウを作成したプロセスの識別子を取得します。

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

参照

参照

CWindow クラス

CWindow::GetWindowThreadID

その他の技術情報

CWindow のメンバー