网站首页  词典首页

请输入您要查询的函数:

 

术语 module32first
释义 Module32First
语法:
C++
BOOL WINAPI Module32First(
__in HANDLE hSnapshot,
__inout LPMODULEENTRY32 lpme
);
Module32First功能
信息检索与进程相关的第一个模块。
参数
hSnapshot [in]
一个句柄,从先前调用CreateToolhelp32Snapshot函数返回的快照。
液相微萃取[ in , out ]
一个 MODULEENTRY32结构的指针。
返回值
返回TRUE,如果在模块列表第一项已被复制到缓冲区或否则返回FALSE。在ERROR_NO_MORE_FILES错误值由GetLastError函数,如果没有模块存在或者不包含快照模块的信息。
备注
调用应用程序必须设置MODULEENTRY32 dwSize成员的大小,以字节为单位的结构。
检索有关指定的进程与有关的其他模块的信息,请使用Module32Next功能。
实例
有关示例,请参见遍历模块列表。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderTlhelp32.h
LibraryKernel32.lib
DLLKernel32.dll
Unicode和ANSI namesModule32FirstW(Unicode)和Module32First(ANSI)的
参见
CreateToolhelp32Snapshot
模块散步
Module32Next
MODULEENTRY32
工具帮助函数
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==Module32First Function
Retrieves information about the first module associated with a process.
Syntax
C++
BOOL WINAPI Module32First(
__in HANDLE hSnapshot,
__inout LPMODULEENTRY32 lpme
);
Parameters
hSnapshot [in]
A handle to the snapshot returned from a previous call to the CreateToolhelp32Snapshot function.
lpme [in, out]
A pointer to a MODULEENTRY32 structure.
Return Value
Returns TRUE if the first entry of the module list has been copied to the buffer or FALSE otherwise. The ERROR_NO_MORE_FILES error value is returned by the GetLastError function if no modules exist or the snapshot does not contain module information.
Remarks
The calling application must set the dwSize member of MODULEENTRY32 to the size, in bytes, of the structure.
To retrieve information about other modules associated with the specified process, use the Module32Next function.
Examples
For an example, see Traversing the Module List .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderTlhelp32.h
LibraryKernel32.lib
DLLKernel32.dll
Unicode and ANSI namesModule32FirstW (Unicode) and Module32First (ANSI)
See Also
CreateToolhelp32Snapshot
Module Walking
Module32Next
MODULEENTRY32
Tool Help Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms684218(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 9:21:14