网站首页  词典首页

请输入您要查询的函数:

 

术语 heap32listfirst
释义 Heap32ListFirst
语法:
C++
BOOL WINAPI Heap32ListFirst(
__in HANDLE hSnapshot,
__inout LPHEAPLIST32 lphl
);
Heap32ListFirst功能
获取信息的第一堆已被指定的进程分配。
参数
hSnapshot [in]
一个句柄,从先前调用CreateToolhelp32Snapshot函数返回的快照。
lphl [ in , out ]
一个 HEAPLIST32结构的指针。
返回值
返回TRUE堆列表第一项已被复制到缓冲区或否则返回FALSE。在ERROR_NO_MORE_FILES错误值返回时,GetLastError函数不存在或堆名单快照不包含堆列表信息。
备注
调用应用程序必须设置HEAPLIST32 dwSize成员的大小,以字节为单位的结构。 Heap32ListFirst变化dwSize,以书面向结构的字节数。这将永远不会大于dwSize初始值,但它可能会更小。如果该值较小,不依赖于任何成员的偏移量大于此值的值。
检索有关堆中的清单其他堆信息,请使用Heap32ListNext功能。
实例
有关示例,请参见遍历堆名单。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderTlhelp32.h
LibraryKernel32.lib
DLLKernel32.dll
参见
CreateToolhelp32Snapshot
堆列表和堆散步
Heap32ListNext
HEAPLIST32
工具帮助函数
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==Heap32ListFirst Function
Retrieves information about the first heap that has been allocated by a specified process.
Syntax
C++
BOOL WINAPI Heap32ListFirst(
__in HANDLE hSnapshot,
__inout LPHEAPLIST32 lphl
);
Parameters
hSnapshot [in]
A handle to the snapshot returned from a previous call to the CreateToolhelp32Snapshot function.
lphl [in, out]
A pointer to a HEAPLIST32 structure.
Return Value
Returns TRUE if the first entry of the heap list has been copied to the buffer or FALSE otherwise. The ERROR_NO_MORE_FILES error value is returned by the GetLastError function when no heap list exists or the snapshot does not contain heap list information.
Remarks
The calling application must set the dwSize member of HEAPLIST32 to the size, in bytes, of the structure. Heap32ListFirst changes dwSize to the number of bytes written to the structure. This will never be greater than the initial value of dwSize, but it may be smaller. If the value is smaller, do not rely on the values of any members whose offsets are greater than this value.
To retrieve information about other heaps in the heap list, use the Heap32ListNext function.
Examples
For an example, see Traversing the Heap List .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderTlhelp32.h
LibraryKernel32.lib
DLLKernel32.dll
See Also
CreateToolhelp32Snapshot
Heap Lists and Heap Walking
Heap32ListNext
HEAPLIST32
Tool Help Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms683432(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 13:25:08