[Contents] [Index] [Help] [Retrace] [Browse <] [Browse >]


   NAME
        GetDefDiskObject - read default wb disk object from disk.       (V36)

   SYNOPSIS
        diskobj = GetDefDiskObject(def_type)
          D0                          D0

        struct diskobject *getdefdiskobject(long);

   FUNCTION
        This routine reads in a default Workbench disk object from disk.
        The valid def_types can be found in workbench/workbench.h and
        currently include WBDISK thru WBKICK. 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 default icons are stored within the system.

   INPUTS
        def_type -- default icon type (WBDISK thru WBKICK).

   RESULTS
        diskobj -- the default Workbench disk object in question

   NOTES
        icon.library V36 through V40 did not support the WBDEVICE default
        icon type.

   SEE ALSO
        dos.library/ioerr
        icon.library/putdefdiskobject
        icon.library/puticontaglist