next up previous contents index
Next: get_page_size Up: Functions and Procedures Previous: unlock_data

unlock_code

   

Declaration:

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

Description:

Unlocks a memory range which resides in the code segment selector.

Parameters:

functionaddr:
address of function to be unlocked
size:
size bytes to be unlocked

Return value: True if successful, false otherwise

Errors:

Check int31error variable

See also:

unlock_linear_region, unlock_data, lock_linear_region, lock_data, lock_code

For an example, see get_rm_callback.



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