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