网站首页  词典首页

请输入您要查询的函数:

 

术语 localhandle
释义 LocalHandle
语法:
C++
HLOCAL WINAPI LocalHandle(
__in LPCVOID pMem
);
LocalHandle功能
检索处理指定的指针到本地内存对象相关联。
注意当地的职能,并提供更大的开销比其他内存管理功能较少的功能。新的应用程序应该使用堆文档指出,除非当地的职能应常用的功能。有关更多信息,请参阅全局和局部的功能。
参数
pMem [in]
A到本地内存对象的第一个字节的指针。这个指针返回的LocalLock功能。
返回值
如果函数成功,返回值是一个句柄到指定的本地内存对象。
如果函数失败,返回值为NULL。为了获得更多错误信息,调用GetLastError。
备注
当LocalAlloc函数分配一个本地内存对象LMEM_MOVEABLE,它返回一个对象的句柄。该LocalLock函数转换成这样处理的对象的内存块指针,LocalHandle转换为指针回处理。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinbase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
全局和局部功能
LocalAlloc
LocalLock
内存管理功能
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月27日
==英文原文==LocalHandle Function
Retrieves the handle associated with the specified pointer to a local memory object.
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++
HLOCAL WINAPI LocalHandle(
__in LPCVOID pMem
);
Parameters
pMem [in]
A pointer to the first byte of the local memory object. This pointer is returned by the LocalLock function.
Return Value
If the function succeeds, the return value is a handle to the specified local memory object.
If the function fails, the return value is NULL. To get extended error information, call GetLastError .
Remarks
When the LocalAlloc function allocates a local memory object with LMEM_MOVEABLE, it returns a handle to the object. The LocalLock function converts this handle into a pointer to the object's memory block, and LocalHandle converts the pointer back into a handle.
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
LocalLock
Memory Management Functions
Send comments about this topic to Microsoft
Build date: 8/27/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa366733(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:24:05