网站首页  词典首页

请输入您要查询的函数:

 

术语 globalflags
释义 GlobalFlags
语法:
C++
UINT WINAPI GlobalFlags(
__in HGLOBAL hMem
);
GlobalFlags功能
信息检索指定的全局内存对象。
注意:此功能仅提供了兼容性与16位的Windows版本。新的应用程序应该使用堆函数。有关更多信息,请参见备注。
参数
hMem [in]
句柄全球内存对象。这是处理无论是GlobalAlloc或GlobalReAlloc函数返回。
返回值
如果函数成功,返回值指定分配值的内存对象和锁计数。
如果函数失败,返回值是GMEM_INVALID_HANDLE,这表明全球句柄无效。为了获得更多错误信息,调用GetLastError。
备注
该低的低的返回值为词序字节包含该对象的锁计数。从该返回值的锁计数,使用与位与(&)运算的GMEM_LOCKCOUNT面具。与GMEM_FIXED分配的内存对象锁计数始终为零。
高,低,返回值的命令字的顺序字节表示的内存对象的分配值。它可以是零或GMEM_DISCARDED。
全球功能有更大的开销,并提供比其它内存管理功能较少的功能。新的应用程序应该使用堆,除非文档指出全局函数应该使用功能。有关更多信息,请参阅全局和局部的功能。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
全局和局部功能
GlobalAlloc
GlobalDiscard
GlobalReAlloc
内存管理功能
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==GlobalFlags Function
Retrieves information about the specified global 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 GlobalFlags(
__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 specifies the allocation values and the lock count for the memory object.
If the function fails, the return value is GMEM_INVALID_HANDLE, indicating that the global 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 GMEM_LOCKCOUNT mask with the bitwise AND (&) operator. The lock count of memory objects allocated with GMEM_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 GMEM_DISCARDED.
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 .
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
GlobalAlloc
GlobalDiscard
GlobalReAlloc
Memory Management Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa366577(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:18:26