GetWindowProcessID函数在哪个单元文件?

mingle lu 2011-07-25 11:12:50
网上查资料看到的函数,说是API函数,但是我不知道在delphi中哪个单元文件中,找了很久没找到,有哪位用过的请告知一声,谢谢
...全文
448 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
Mit1208 2011-07-25
  • 打赏
  • 举报
回复
Delphi XE的Windows.pas单元下有GetProcessID这个函数.

在MSDN里能够搜索到GetWindowProcessID



Retrieves the identifier of the process that created the window.

DWORD GetWindowProcessID( ) throw();


Remarks
See GetWindowThreadProcessID in the Windows SDK.

Example
Visual C++ Copy Code
//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();

gyk120 2011-07-25
  • 打赏
  • 举报
回复
windows或者system里面找找吧
另外应该是GetWindowThreadProcessID

1,184

社区成员

发帖
与我相关
我的任务
社区描述
Delphi Windows SDK/API
社区管理员
  • Windows SDK/API社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧