网站首页  词典首页

请输入您要查询的函数:

 

术语 heap32first
释义 Heap32First
语法:
C++
BOOL WINAPI Heap32First(
__inout LPHEAPENTRY32 lphe,
__in DWORD th32ProcessID,
__in ULONG_PTR th32HeapID
);
Heap32First功能
获取信息的一个已经被一个进程分配的堆的第一个块。
参数
lphe [ in , out ]
一个 HEAPENTRY32结构的指针。
th32ProcessID [in]
该进程的背景下,拥有堆标识符。
th32HeapID [in]
堆标识符被枚举。
返回值
返回TRUE,如果资料第一堆块已被复制到缓冲区或否则返回FALSE。在ERROR_NO_MORE_FILES错误值由GetLastError函数如果堆无效或为空。
备注
调用应用程序必须设置HEAPENTRY32 dwSize成员的大小,以字节为单位的结构。 Heap32First变化dwSize,以书面向结构的字节数。这将永远不会大于dwSize初始值,但它可能会更小。如果该值较小,不依赖于任何成员的偏移量大于此值的值。
要访问同一堆随后块,使用Heap32Next功能。
实例
有关示例,请参见遍历堆名单。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderTlhelp32.h
LibraryKernel32.lib
DLLKernel32.dll
参见
堆列表和堆散步
Heap32Next
HEAPENTRY32
工具帮助函数
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==Heap32First Function
Retrieves information about the first block of a heap that has been allocated by a process.
Syntax
C++
BOOL WINAPI Heap32First(
__inout LPHEAPENTRY32 lphe,
__in DWORD th32ProcessID,
__in ULONG_PTR th32HeapID
);
Parameters
lphe [in, out]
A pointer to a HEAPENTRY32 structure.
th32ProcessID [in]
The identifier of the process context that owns the heap.
th32HeapID [in]
The identifier of the heap to be enumerated.
Return Value
Returns TRUE if information for the first heap block has been copied to the buffer or FALSE otherwise. The ERROR_NO_MORE_FILES error value is returned by the GetLastError function if the heap is invalid or empty.
Remarks
The calling application must set the dwSize member of HEAPENTRY32 to the size, in bytes, of the structure. Heap32First 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 access subsequent blocks of the same heap, use the Heap32Next 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
Heap Lists and Heap Walking
Heap32Next
HEAPENTRY32
Tool Help Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms683245(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:20:29