# Function Reference

# _MemGlobalLock

Locks a global memory object and returns a pointer to the first byte of the object's memory block

#include <Memory.au3>
_MemGlobalLock ( $hMemory )

## Parameters

$hMemory | Handle to the global memory object

## Return Value

Success: | a pointer to the first byte of the memory block.
Failure: | 0.

## Related

_MemGlobalAlloc, _MemGlobalUnlock

## See Also

Search GlobalLock in MSDN Library.