网站首页  词典首页

请输入您要查询的函数:

 

术语 localflags
释义 LocalFlags
语法:
C++
UINT WINAPI LocalFlags(
__in HLOCAL hMem
);
LocalFlags功能
信息检索指定的本地内存对象。
注意:此功能仅提供了兼容性与16位的Windows版本。新的应用程序应该使用堆函数。有关更多信息,请参见备注。
参数
hMem [in]
句柄到本地内存对象。这是处理不论是由LocalAlloc或LocalReAlloc函数返回。
返回值
如果函数成功,返回值指定分配值的内存对象和锁计数。
如果函数失败,返回值是LMEM_INVALID_HANDLE,显示本地的处理是无效的。为了获得更多错误信息,调用GetLastError。
备注
该低的低的返回值为词序字节包含该对象的锁计数。从该返回值的锁计数,使用与位与(&)运算的LMEM_LOCKCOUNT面具。与LMEM_FIXED分配的内存对象锁计数始终为零。
高,低,返回值的命令字的顺序字节表示的内存对象的分配值。它可以是零或LMEM_DISCARDABLE。
当地的职能,并提供更大的开销比其他内存管理功能较少的功能。新的应用程序应该使用堆文档指出,除非当地的职能应常用的功能。有关更多信息,请参阅全局和局部的功能。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
全局和局部功能
GlobalFlags
LocalAlloc
LocalDiscard
LocalLock
LocalReAlloc
LocalUnlock
内存管理功能
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==LocalFlags Function
Retrieves information about the specified local memory object.
Note This function is provided only for compatibility with 16-bit versions of Windows. New applications should use the heap functions . For more information, see Remarks.
Syntax
C++
UINT WINAPI LocalFlags(
__in HLOCAL hMem
);
Parameters
hMem [in]
A handle to the local memory object. This handle is returned by either the LocalAlloc or LocalReAlloc function.
Return Value
If the function succeeds, the return value specifies the allocation values and the lock count for the memory object.
If the function fails, the return value is LMEM_INVALID_HANDLE, indicating that the local handle is not valid. To get extended error information, call GetLastError .
Remarks
The low-order byte of the low-order word of the return value contains the lock count of the object. To retrieve the lock count from the return value, use the LMEM_LOCKCOUNT mask with the bitwise AND (&) operator. The lock count of memory objects allocated with LMEM_FIXED is always zero.
The high-order byte of the low-order word of the return value indicates the allocation values of the memory object. It can be zero or LMEM_DISCARDABLE.
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 .
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
GlobalFlags
LocalAlloc
LocalDiscard
LocalLock
LocalReAlloc
LocalUnlock
Memory Management Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa366728(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:17:55