using namespace System;
using namespace System::Diagnostics;
using namespace System::ComponentModel;
Process *m_pCurProcess = Process::GetProcessById(processid);
m_pCurProcess->WaitForInputIdle();
IntPtr iptr = m_pCurProcess->MainWindowHandle;
HWND m_hWnd =(HWND)iptr.ToInt32();
或则用
EnumWindows+GetWindowThreadProcessId
posted on 2007-12-10 09:39
我风 阅读(7665)
评论(5) 编辑 收藏 引用