网站首页  词典首页

请输入您要查询的函数:

 

术语 localsize
释义 LocalSize
语法:
C++
UINT WINAPI LocalSize(
__in HLOCAL hMem
);
LocalSize功能
检索指定的本地内存对象的当前大小,以字节为单位。
注意当地的职能,并提供更大的开销比其他内存管理功能较少的功能。新的应用程序应该使用堆文档指出,除非当地的职能应常用的功能。有关更多信息,请参阅全局和局部的功能。
参数
hMem [in]
句柄到本地内存对象。这种处理是由LocalAlloc,LocalReAlloc,或LocalHandle函数返回。
返回值
如果函数成功,返回值是指定的本地内存对象的大小以字节为单位。如果指定的句柄无效或者如果对象已被丢弃,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
一个内存块大小可能会大于尺寸要求时,内存被分配。
要验证指定对象的内存块并没有放弃,调用LocalFlags函数之前调用LocalSize。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
全局和局部功能
LocalAlloc
LocalFlags
LocalHandle
LocalReAlloc
内存管理功能
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==LocalSize Function
Retrieves the current size of the specified local memory object, in bytes.
Note The local 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 local function should be used. For more information, see Global and Local Functions .
Syntax
C++
UINT WINAPI LocalSize(
__in HLOCAL hMem
);
Parameters
hMem [in]
A handle to the local memory object. This handle is returned by the LocalAlloc , LocalReAlloc , or LocalHandle function.
Return Value
If the function succeeds, the return value is the size of the specified local memory object, in bytes. If the specified handle is not valid or if the object has been discarded, the return value is zero. To get extended error information, call GetLastError .
Remarks
The size of a memory block may be larger than the size requested when the memory was allocated.
To verify that the specified object's memory block has not been discarded, call the LocalFlags function before calling LocalSize.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinbase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
Global and Local Functions
LocalAlloc
LocalFlags
LocalHandle
LocalReAlloc
Memory Management Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa366745(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:13