Partager via


CWin32Heap::Attach

Attaches the heap object to an existing heap.

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

Parameters

  • hHeap
    An existing heap handle.

  • bTakeOwnership
    A flag indicating if the CWin32Heap object is to take ownership over the resources of the heap.

Remarks

If bTakeOwnership is TRUE, the CWin32Heap object is responsible for deleting the heap handle.

Requirements

Header: atlmem.h

See Also

Reference

CWin32Heap Class

CWin32Heap::Detach

Other Resources

CWin32Heap Members