WinStd
Windows Win32 API using Standard C++
|
Context scope automatic GlobalAlloc (un)access. More...
#include <WinStd/Common.h>
Public Member Functions | |
globalmem_accessor (HGLOBAL hMem) | |
Locks a global memory object and returns a pointer to the first byte of the object's memory block. | |
virtual | ~globalmem_accessor () |
Decrements the lock count associated with a memory object. | |
T * | data () const noexcept |
Return data pointer. | |
Protected Attributes | |
HGLOBAL | m_h |
memory handle | |
T * | m_data |
memory pointer | |
Context scope automatic GlobalAlloc (un)access.
|
inline |
Locks a global memory object and returns a pointer to the first byte of the object's memory block.
|
inlinevirtual |
Decrements the lock count associated with a memory object.