[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 WBGARBAGE.  If the call fails,
    it will return zero.  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).  Note that the
               define 'WBDEVICE' is not currently supported.

RESULTS
    diskobj -- the default Workbench disk object in question

SEE ALSO
    PutDefDiskObject

BUGS
    None