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


   NAME
        PutDefDiskObject - write disk object as the default for its type.  (V36)

   SYNOPSIS
        status = PutDefDiskObject(diskobj)
          D0                        A0

        bool putdefdiskobject(struct diskobject *);

   FUNCTION
        This routine writes out a diskobject structure, and its
        associated information.  If the call fails, FALSE will
        be returned.  The reason for the failure may be obtained
        via ioerr().

        Note that this function calls putdiskobject() internally which means
        that this call (if sucessful) notifies workbench than an icon has
        been created/modified.

        Using this routine protects you from any future changes to
        the way default icons are stored within the system.

   INPUTS
        diskobj -- a pointer to a diskobject

   RESULTS
        status -- TRUE if the call succeeded else FALSE

   SEE ALSO
        dos.library/ioerr
        icon.library/getdefdiskobject
        icon.library/geticontaglist
        icon.library/putdiskobject