next up previous contents index
Next: unlock_linear_region Up: Functions and Procedures Previous: lock_data

lock_code

   

Declaration:

Function lock_code (functionaddr : pointer; size : Longint) : boolean;

Description:

Locks a memory range which is in the code segment selector.

Parameters:

functionaddr:
address of the function to be lockd
size:
size in bytes to be locked

Return values: True if successful, false otherwise

Errors:

Check int31error variable

See also:

lock_linear_region, lock_data, unlock_linear_region, unlock_data, unlock_code

For an example, see get_rm_callback.



Michael Van Canneyt
Thu Sep 10 13:59:33 CEST 1998