Sign in Join
FPDoc Onlineexperiment

lock_code function

In unit go32

Lock code memory range.

Declaration

pascal
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 locked.
size
size in bytes to be locked.

Return values: True if successful, False otherwise.

For an example, see get_rm_callback.

Errors

Check the int31error variable.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.