[Overview][Constants][Types][Procedures and functions][Variables][Index] Reference for unit 'icon' (#aros)

PutDefDiskObject

Write disk object as the default for its type.

Declaration

Source position: icon.pas line 231

function PutDefDiskObject(

  const Icon: PDiskObject

):BOOL;

Arguments

Icon

  

A pointer to a DiskObject

Function result

True if the call succeeded else False

Description

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.

See also

IoErr()

  

Return extra information from the system

GetDefDiskObject

  

Read default wb disk object from disk.

GetIconTagList

  

Retrieve an icon

PutDiskObject

  

Write out a DiskObject to disk.


Documentation generated on: 2017-01-10