CWin32Heap::Attach

附加到现有的堆的堆对象。

void Attach(
   HANDLE hHeap,
   bool bTakeOwnership 
) throw( );

参数

  • hHeap
    现有的堆处理。

  • bTakeOwnership
    指示 CWin32Heap 对象是否的标志将采用堆中的资源的所有权。

备注

如果 bTakeOwnership 是TRUE,CWin32Heap 对象中删除堆负责处理。

要求

Header: atlmem.h

请参见

参考

CWin32Heap选件类

CWin32Heap::Detach