mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-06 23:14:54 -06:00
9.06 beta
This commit is contained in:
committed by
Kornel Lesiński
parent
829409452d
commit
c99f3ebdd6
@@ -7,11 +7,6 @@
|
||||
namespace NWindows {
|
||||
namespace NMemory {
|
||||
|
||||
CGlobal::~CGlobal()
|
||||
{
|
||||
Free();
|
||||
}
|
||||
|
||||
bool CGlobal::Alloc(UINT flags, SIZE_T size)
|
||||
{
|
||||
HGLOBAL newBlock = ::GlobalAlloc(flags, size);
|
||||
@@ -29,29 +24,6 @@ bool CGlobal::Free()
|
||||
return (m_MemoryHandle == NULL);
|
||||
}
|
||||
|
||||
void CGlobal::Attach(HGLOBAL hGlobal)
|
||||
{
|
||||
Free();
|
||||
m_MemoryHandle = hGlobal;
|
||||
}
|
||||
|
||||
HGLOBAL CGlobal::Detach()
|
||||
{
|
||||
HGLOBAL h = m_MemoryHandle;
|
||||
m_MemoryHandle = NULL;
|
||||
return h;
|
||||
}
|
||||
|
||||
LPVOID CGlobal::Lock() const
|
||||
{
|
||||
return ::GlobalLock(m_MemoryHandle);
|
||||
}
|
||||
|
||||
void CGlobal::Unlock() const
|
||||
{
|
||||
::GlobalUnlock(m_MemoryHandle);
|
||||
}
|
||||
|
||||
bool CGlobal::ReAlloc(SIZE_T size)
|
||||
{
|
||||
HGLOBAL newBlock = ::GlobalReAlloc(m_MemoryHandle, size, GMEM_MOVEABLE);
|
||||
|
||||
Reference in New Issue
Block a user