Unit 'icon' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#os4units]

PutDefDiskObject

Write disk object as the default for its type.

Declaration

Source position: icon.pas line 242

function PutDefDiskObject(

  const Icon: PDiskObject

):LongBool;

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: 2021-07-30