在看MSDN中GlobalAlloc函数的
HGLOBAL GlobalAlloc(
UINT uFlags, // allocation attributes
SIZE_T dwBytes // number of bytes to allocate 该参数的时候
);参数一
GMEM_FIXED Allocates fixed memory. The return value is a pointer. 参数二
GMEM_MOVEABLE Allocates movable memory. Memory blocks are never moved in physical memory, but they can be moved within the default heap.
The return value is a handle to the memory object. To translate the handle into a pointer, use the GlobalLock function. This value cannot be combined with GMEM_FIXED.
请问 fixed memory和movable memory分别是什么意思?他们到底在哪里?
堆还是栈?
HGLOBAL GlobalAlloc(
UINT uFlags, // allocation attributes
SIZE_T dwBytes // number of bytes to allocate 该参数的时候
);参数一
GMEM_FIXED Allocates fixed memory. The return value is a pointer. 参数二
GMEM_MOVEABLE Allocates movable memory. Memory blocks are never moved in physical memory, but they can be moved within the default heap.
The return value is a handle to the memory object. To translate the handle into a pointer, use the GlobalLock function. This value cannot be combined with GMEM_FIXED.
请问 fixed memory和movable memory分别是什么意思?他们到底在哪里?
堆还是栈?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货