Public Member Functions | |
CSmartHGlobal () | |
Construct a CSmartHGlobal that doesn't, currently, own any memory. | |
CSmartHGlobal (HGLOBAL hGlobal) | |
Construct a CSmartHandle that takes ownership of the supplied HGLOBAL. | |
CSmartHGlobal (const CSmartHGlobal &rhs) | |
~CSmartHGlobal () | |
CSmartHGlobal & | operator= (HGLOBAL hGlobal) |
CSmartHGlobal & | operator= (const CSmartHGlobal &rhs) |
operator HGLOBAL () const | |
Access the HGLOBAL... We should remove this... | |
void | Attach (HGLOBAL hGlobal) |
Take ownership of the supplied HGLOBAL. | |
HGLOBAL | Detach () |
No longer manage ownership of the HGLOBAL and return it. | |
bool | IsValid () const |
Returns true if the CSmartHandle currently has ownership of a HGLOBAL. | |
size_t | GetSize () const |
Returns the size of the HGLOBAL. |
CSmartHGlobal | ( | ) |
Construct a CSmartHGlobal that doesn't, currently, own any memory.
CSmartHGlobal | ( | HGLOBAL | hGlobal | ) | [explicit] |
Construct a CSmartHandle that takes ownership of the supplied HGLOBAL.
CSmartHGlobal | ( | const CSmartHGlobal & | rhs | ) |
~CSmartHGlobal | ( | ) |
CSmartHGlobal & operator= | ( | HGLOBAL | hGlobal | ) |
CSmartHGlobal& operator= | ( | const CSmartHGlobal & | rhs | ) |
operator HGLOBAL | ( | ) | const |
Access the HGLOBAL... We should remove this...
void Attach | ( | HGLOBAL | hGlobal | ) |
Take ownership of the supplied HGLOBAL.
HGLOBAL Detach | ( | ) |
No longer manage ownership of the HGLOBAL and return it.
bool IsValid | ( | ) | const |
Returns true if the CSmartHandle currently has ownership of a HGLOBAL.
size_t GetSize | ( | ) | const |
Returns the size of the HGLOBAL.