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

AllocDosObject

Creates a dos object

Declaration

Source position: amigados.pas line 1741

function AllocDosObject(

  type1: Cardinal;

  tags: Pointer

):Pointer;

Arguments

type1

  

Type of object requested

tags

  

Pointer to taglist with additional information (DOS_* and ADO_*)

Function result

Pointer to the object or nil

Description

Create a dos objects of a given type, initializes it, and returns it to you. Note the DOS_STDPKT returns a pointer to the sp_Pkt of the structure.This memory has to be freed with FreeDosObject().

This function may be called by a task for all types and tags DOS_* and ADO_*. Any future types or tags will be documented as to whether a task may use them.

See also

FreeDosObject

  

Frees an object allocated by AllocDosObject()


Documentation generated on: 2021-07-30