The LockSegment function is obsolete. It is provided only for compatibility with 16-bit versions of Windows. It has no meaning in the 32-bit environment.
Memory Management Overview, Memory Management Functions