a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Libraries:
 icon.library
  AddFreeList
  BumpRevision
  ChangeToSelectedIconColor
  DeleteDiskObject
  DrawIconStateA
  DupDiskObjectA
  FindToolType
  FreeDiskObject
  FreeFreeList
  GetDefDiskObject
  GetDiskObject
  GetDiskObjectNew
  GetIconRectangleA
  GetIconTagList
  IconControlA
  LayoutIconA
  MatchToolValue
  NewDiskObject
  PutDefDiskObject
  PutDiskObject
  PutIconTagList
Include
GuruMeditation
Docs » Autodocs » icon.library » GetDiskObject

NAME

	GetDiskObject - read in a Workbench disk object from disk.

SYNOPSIS

	diskobj = GetDiskObject(name)
D0 A0
struct DiskObject *GetDiskObject(STRPTR);

FUNCTION

	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 NULL. 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 FreeList structure is allocated just after the DiskObject
structure; FreeDiskObject makes use of this to get rid of the
memory that was allocated.

INPUTS

	name -- name of the object (STRPTR) or NULL if you just want a
DiskObject structure allocated for you (useful when
calling AddAppIcon() in workbench.library).

RESULT

	diskobj -- the Workbench disk object in question

SEE ALSO

dos.library/IoErr(), icon.library/DeleteDiskObject(), icon.library/FreeDiskObject(), icon.library/GetDiskObjectNew(), icon.library/GetIconTagList(), icon.library/NewDiskObject(), icon.library/PutDiskObject(), icon.library/PutIconTagList(), workbench.library/AddAppIconA()

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Horizon

TBL
HZ
RSI
RZR

Comments:

$VER: d0.se 1.14 Copyright © 2011-2020 Tobias Geijersson support at d0 dot se