Condividi tramite


CWin32Heap::Attach

Associa l'oggetto dell'heap in un heap esistente.

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

Parametri

  • hHeap
    L'handle esistenti heap.

  • bTakeOwnership
    Un flag che indica se l'oggetto CWin32Heap è di utilizzare la proprietà sulle risorse dell'heap.

Note

Se bTakeOwnership è VERO, l'oggetto CWin32Heap è responsabile dell'eliminazione degli heap.

Requisiti

Header: atlmem.h

Vedere anche

Riferimenti

CWin32Heap Class

CWin32Heap::Detach