Function lock_data (var data; size : Longint) : boolean;
Locks a memory range which resides in the data segment selector
Parameters:
Return values: True if successful, false otherwise
Check int31error variable
lock_linear_region, lock_code, unlock_linear_region, unlock_data, unlock_code
For an example, see get_rm_callback.