Unit 'amigados' Package
[Overview][Constants][Types][Procedures and functions][Index] [#aros]

AddSegment

Adds a resident segment to the resident list

Declaration

Source position: amigados.pas line 2331

function AddSegment(

  const Name: PChar;

  Seg: Pointer;

  Type_: LongInt

):LongBool;

Arguments

Name

  

Name of the segment. This is used by FindSegment(). Will be copied.

Seg

  

Segment to add.

Type_

  

What type of segment (initial use count). (CMD_*)

Function result

<> 0 = success, 0 = Error

Description

Adds a program segment to the system resident list. You can later use these segments to run programs.

The type field determines the type of resident program. Normal programs should have type >= 0, system segments should have type = CMD_SYSTEM.

Note that all other values of type are reserved.

See also

FindSegment

  

Finds a segment on the resident list

RemSegment

  

Removes a resident segment from the resident list

LoadSeg

  

Scatterload a loadable file into memory


Documentation generated on: 2021-07-30