网站首页  计算机词典

请输入您要查询的字词:

 

字词 globaldiscard
释义 GlobalDiscard
语法:
C++
HGLOBAL WINAPI GlobalDiscard(
[in] HGLOBAL hMem
);
GlobalDiscard宏
丢弃指定的全局内存块。该内存对象锁计数必须为零。
注意:全局函数有更大的开销,并提供比其它内存管理功能较少的功能。新的应用程序应该使用堆,除非文档指出全局函数应该使用功能。有关更多信息,请参阅全局和局部的功能。
参数
hMem [in]
句柄全球内存对象。这是处理无论是GlobalAlloc或GlobalReAlloc函数返回。
返回值
如果函数成功,返回值是一个句柄内存对象。
如果函数失败,返回值为NULL。为了获得更多错误信息,调用GetLastError。
备注
虽然GlobalDiscard丢弃对象的内存块,该处理的对象仍然有效。这个过程可以随后通过句柄GlobalReAlloc功能再增拨全球内存块由同一处理一些。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
参见
全局和局部功能
GlobalAlloc
GlobalReAlloc
内存管理功能
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==GlobalDiscard Macro
Discards the specified global memory block. The lock count of the memory object must be zero.
Note The global functions have greater overhead and provide fewer features than other memory management functions. New applications should use the heap functions unless documentation states that a global function should be used. For more information, see Global and Local Functions .
Syntax
C++
HGLOBAL WINAPI GlobalDiscard(
[in] HGLOBAL hMem
);
Parameters
hMem [in]
A handle to the global memory object. This handle is returned by either the GlobalAlloc or GlobalReAlloc function.
Return Value
If the function succeeds, the return value is a handle to the memory object.
If the function fails, the return value is NULL. To get extended error information, call GetLastError .
Remarks
Although GlobalDiscard discards the object's memory block, the handle to the object remains valid. The process can subsequently pass the handle to the GlobalReAlloc function to allocate another global memory block identified by the same handle.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
See Also
Global and Local Functions
GlobalAlloc
GlobalReAlloc
Memory Management Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa366575(VS.85).aspx\n
随便看

 

计算机英汉双解词典包含34412条计算机术语英汉翻译词条,基本涵盖了全部常用计算机术语的翻译及用法,是计算机学习及翻译工作的有利工具。

 

Copyright © 2021-2025 foosec.com All Rights Reserved
更新时间:2026/10/23 23:40:28