求助,GlobalAlloc函数到底返回什么值?
罗sir的书上(P360)写的:
“如果内存申请失败,eax 返回 NULL,否则返回只是一个纸箱内存块的起始地址的指针,用户需要保存这个指针,在使用内存或者释放内存的时候还要用到它”
查阅MSDN得到如下结果:
Return Values:
If the function succeeds, the return value is a handle to the newly allocated memory object.
If the function fails, the return value is NULL. To get extended error information, call GetLastError.
----------
请教高手,这里到底返回句柄还是指针???请指教一下,谢谢啦!