Share via


CWin32Heap::Attach

Joint l'objet heap à un tas existant.

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

Paramètres

  • hHeap
    Un handle existant du tas.

  • bTakeOwnership
    Une balise indiquant si l'objet d' CWin32Heap consiste à prendre la propriété sur les ressources du tas.

Notes

Si bTakeOwnership est VRAI, l'objet d' CWin32Heap est chargé de supprimer le handle du tas.

Configuration requise

Header: atlmem.h

Voir aussi

Référence

Classe de CWin32Heap

CWin32Heap::Detach