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

AllocDosObject

Creates a dos object

Declaration

Source position: amigados.pas line 2236

function AllocDosObject(

  Type_: LongWord;

  const Tags: PTagItem

):Pointer;

Arguments

Type_

  

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