CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
不看会后悔的Windows XP之经验谈 简单快捷DIY实用家庭影院
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  Delphi >  Windows SDK/API

请问有人知道EnumProcessModules用法吗?

楼主bqylin(青云)2003-08-03 16:34:44 在 Delphi / Windows SDK/API 提问

请问有人知道EnumProcessModules用法吗? 问题点数:0、回复次数:4Top

1 楼pankun(剑神一笑 Console下面干革命)回复于 2003-08-03 19:55:51 得分 0

没用过,但从函数名看来像是枚举进程模块?Top

2 楼ljmanage(过客)回复于 2003-08-03 21:58:03 得分 0

EnumProcessModules  
  The   EnumProcessModules   function   retrieves   a   handle   for   each   module   in   the   specified   process.    
   
  BOOL   EnumProcessModules(  
      HANDLE   hProcess,             //   handle   to   the   process  
      HMODULE   *   lphModule,     //   array   to   receive   the   module   handles  
      DWORD   cb,                           //   size   of   the   array  
      LPDWORD   lpcbNeeded         //   receives   the   number   of   bytes   returned  
  );  
     
  Parameters  
  hProcess    
  Handle   to   the   process.    
  lphModule    
  Pointer   to   the   array   that   receives   the   list   of   module   handles.    
  cb    
  Specifies   the   size,   in   bytes,   of   the   lphModule   array.    
  lpcbNeeded    
  Receives   the   number   of   bytes   returned   in   the   lphModule   array.    
  Return   Value  
  If   the   function   succeeds,   the   return   value   is   nonzero.  
   
  If   the   function   fails,   the   return   value   is   zero.   To   get   extended   error   information,   call   GetLastError.    
   
  Remarks  
  It   is   a   good   idea   to   give   EnumProcessModules   a   large   array   of   HMODULE   values,   because   it   is   hard   to   predict   how   many   modules   there   will   be   in   the   process   at   the   time   you   call   EnumProcessModules.   To   determine   how   many   modules   were   enumerated   by   the   call   to   EnumProcessModules,   divide   the   resulting   value   in   the   lpcbNeeded   parameter   by   sizeof(HMODULE).    
   
  Top

3 楼ljmanage(过客)回复于 2003-08-03 21:58:39 得分 0

应该在tlhelp32单元中Top

4 楼bqylin(青云)回复于 2003-08-04 00:09:58 得分 0

to   ljmanage(过客)    
      能给出EnumProcessModules的Delphi声明吗?Top

相关问题

  • 有人知道Jindent的用法吗?
  • 有没有人知道sqlserver中类似于next_day的用法。
  • 谁知道Hyperlink的用法?
  • 知道inet用法请进
  • 谁知道SetMapMode用法啊
  • 有谁知道ASDA控件的用法?
  • 哪位大侠知道InatallShield的用法?
  • 有谁知道winsock中closesockinfo的用法?
  • 谁知道API函数SetSysColors的用法?
  • 有谁知道TADOBLOBStream的用法?

关键词

  • enumprocessmodules
  • lphmodule
  • lpcbneeded
  • hmodule
  • modules
  • receives
  • array
  • handles
  • process
  • call

得分解答快速导航

  • 帖主:bqylin

相关链接

  • Delphi类图书
  • Delphi类源码下载
  • Delphi控件下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo