Поделиться через


CWin32Heap::Attach

Attaches the heap object to an existing heap.

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

Параметры

  • hHeap
    An existing heap handle.

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

Заметки

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

Требования

Header: atlmem.h

См. также

Основные понятия

CWin32Heap Class

CWin32Heap Members

CWin32Heap::Detach