The LockSegment function is obsolete.
This function is provided in Win32 only for compatibility with earlier versions of Windows. New Win32 applications should not use this function.