Unit 'AmigaDOS' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#morphunits]

AddSegmentTagList

Adds a program segment to the system resident list.

Declaration

Source position: amigados.pas line 2285

function AddSegmentTagList(

  tags: Pointer

):LongInt;

Arguments

tags

  

pointer to a taglist

Function result

= 0 failure, otherwise success

Description

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

The name field should refer to a #0 terminated strings, which will be copied. The type field determines the type of resident program. Normal programs should have type >= 0, system segments should have type = CMD_SYSTEM. The file name is only used if no seglist is given. It is the name of the file that will be loaded when someone tries to access this segment.

Note that all other values of ADDS_Type are reserved.

Available Tags

ADDS_Name
(PChar), required
ADDS_Seglist
(BPTR)
ADDS_Filename
(PChar) required if no seglist is given
ADDS_Type
(LongInt) Defaults to 0

Errors

Uses Forbid() based locking.

See also

FindSegment

  

Finds a segment on the resident list

RemSegment

  

Removes a resident segment from the resident list


Documentation generated on: 2021-07-30