Allocate a named object.
Source position: utility.pas line 344
function AllocNamedObjectA( |
const name: PChar; |
const TagList: pTagItem |
):pNamedObject; |
const name: string; |
const TagList: pTagItem |
):pNamedObject; |
name |
|
The name of the NamedObject. Obviously this must be specified |
TagList |
|
A TagList containing some extra information for this NamedObject. (ANO_*) |
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.)
name |
|
The name of the NamedObject. Obviously this must be specified |
TagList |
|
A TagList containing some extra information for this NamedObject. (ANO_*) |
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.
|
Frees a name object. |
|
|
Tag for AllocNamedObjectA(). Tag to define namespace |
|
|
Tag for AllocNamedObjectA(). Taf to define userspace |
|
|
Tag for AllocNamedObjectA(). Tag to define priority |
|
|
Tag for AllocNamedObjectA(). Tag to define flags (NSF_*) |