网站首页  词典首页

请输入您要查询的函数:

 

术语 getprocessheap
释义 GetProcessHeap
语法:
C++
HANDLE WINAPI GetProcessHeap(void);
GetProcessHeap函数
检索的句柄调用进程的默认堆。这种处理然后可以到后来的堆函数调用中使用。
参数
这个函数没有参数。
返回值
如果函数成功,返回值是一个句柄调用进程的堆。
如果函数失败,返回值为NULL。为了获得更多错误信息,调用GetLastError。
备注
该GetProcessHeap函数获得一个句柄调用进程的默认堆。一个进程可以使用此处理来进行分配,进程堆,而不必首先创建一个私有堆使用HeapCreate功能的内存。
Windows Server 2003中,Windows XP和Windows 2000 SP4的和修复KB 816542:使低收入的进程默认堆碎片堆,请与处理GetProcessHeap返回的HeapSetInformation功能。
实例
有关示例,请参阅使用过程堆。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
堆函数
HeapCreate
内存管理功能
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==GetProcessHeap Function
Retrieves a handle to the default heap of the calling process. This handle can then be used in subsequent calls to the heap functions.
Syntax
C++
HANDLE WINAPI GetProcessHeap(void);
Parameters
This function has no parameters.
Return Value
If the function succeeds, the return value is a handle to the calling process's heap.
If the function fails, the return value is NULL. To get extended error information, call GetLastError .
Remarks
The GetProcessHeap function obtains a handle to the default heap for the calling process. A process can use this handle to allocate memory from the process heap without having to first create a private heap using the HeapCreate function.
Windows Server 2003, Windows XP, and Windows 2000 with SP4 and hotfix KB 816542 : To enable the low-fragmentation heap for the default heap of the process, call the HeapSetInformation function with the handle returned by GetProcessHeap.
Examples
For an example, see Getting Process Heaps .
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/aa366569(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:19:07