Read in a Workbench disk object from disk.
Source position: icon.pas line 228
function GetDiskObject( |
const Name: PChar |
):PDiskObject; |
Name |
|
Name of the object or nil if you just want a DiskObject structure allocated for you (useful when calling AddAppIcon() in workbench.library). |
The Workbench disk object in question
This routine reads in a Workbench disk object in from disk. The name parameter will have ".info" postpended to it, and the icon file of that name will be read. If the call fails, it will return nil. The reason for the failure may be obtained via IoErr().
Using this routine protects you from any future changes to the way icons are stored within the system.
A TFreeList structure is allocated just after the DiskObject structure; FreeDiskObject() makes use of this to get rid of the memory that was allocated.
|
Return extra information from the system |
|
|
Delete a Workbench disk object from disk. |
|
|
Free all memory in a Workbench disk object. |
|
|
Read in a Workbench disk object from disk. |
|
|
Retrieve an icon |
|
|
Create an empty icon |
|
|
Write out a DiskObject to disk. |
|
|
Store an icon |
|
|