网站首页  词典首页

请输入您要查询的函数:

 

术语 heapdestroy
释义 HeapDestroy
语法:
C++
BOOL WINAPI HeapDestroy(
__in HANDLE hHeap
);
HeapDestroy功能
销毁指定的堆对象。它可以收回并释放所有的私营堆对象页,它的句柄无效堆。
参数
hHeap [in]
阿堆句柄被摧毁。这种处理是由HeapCreate函数返回。不要使用句柄进程堆的GetProcessHeap函数返回。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
流程可以调用HeapDestroy不首先调用HeapFree函数来释放内存从堆中分配。
实例
他列举了堆
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
堆函数
HeapCreate
内存管理功能
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==HeapDestroy Function
Destroys the specified heap object. It decommits and releases all the pages of a private heap object, and it invalidates the handle to the heap.
Syntax
C++
BOOL WINAPI HeapDestroy(
__in HANDLE hHeap
);
Parameters
hHeap [in]
A handle to the heap to be destroyed. This handle is returned by the HeapCreate function. Do not use the handle to the process heap returned by the GetProcessHeap function.
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
Processes can call HeapDestroy without first calling the HeapFree function to free memory allocated from the heap.
Examples
Enumerating a Heap
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
Heap Functions
HeapCreate
Memory Management Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa366700(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:30