Unit 'utility' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#amunits]

AllocNamedObjectA

Allocate a named object.

Declaration

Source position: utility.pas line 344

function AllocNamedObjectA(

  const name: PChar;

  const TagList: pTagItem

):pNamedObject;

function AllocNamedObjectA(

  const name: string;

  const TagList: pTagItem

):pNamedObject;

Arguments

name

  

The name of the NamedObject. Obviously this must be specified

TagList

  

A TagList containing some extra information for this NamedObject. (ANO_*)

Function result

The object allocated, or nil for failure. The object is defined as a pointer to a pointer. You can do what you wish with the pointer. (It may be nil or contain a pointer to memory that you had asked for in the tags.)

Arguments

name

  

The name of the NamedObject. Obviously this must be specified

TagList

  

A TagList containing some extra information for this NamedObject. (ANO_*)

Description

Allocate a new NamedObject and initializes it as requested. This object can then be used as an object in a name space. Optionally you give this object a name space, and use it to nest name spaces. You can also allocate some memory which is attached to this object for your own personal use.

When the object is allocated, it will automatically have one user. To allow other users to remove this object from a namespace, you must call ReleaseNamedObject() on this object.

See also

FreeNamedObject

  

Frees a name object.

ANO_NameSpace

  

Tag for AllocNamedObjectA(). Tag to define namespace

ANO_UserSpace

  

Tag for AllocNamedObjectA(). Taf to define userspace

ANO_Priority

  

Tag for AllocNamedObjectA(). Tag to define priority

ANO_Flags

  

Tag for AllocNamedObjectA(). Tag to define flags (NSF_*)


Documentation generated on: 2021-07-30