Sign in Join
FPDoc Onlineexperiment

unlock_code function

In unit go32

Unlock code segment.

Declaration

pascal
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.

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.