a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Libraries:
 icon.library
  AddFreeList
  BumpRevision
  ChangeToSelectedIconColor
  DeleteDiskObject
  DrawIconStateA
  DupDiskObjectA
  FindToolType
  FreeDiskObject
  FreeFreeList
  GetDefDiskObject
  GetDiskObject
  GetDiskObjectNew
  GetIconRectangleA
  GetIconTagList
  IconControlA
  LayoutIconA
  MatchToolValue
  NewDiskObject
  PutDefDiskObject
  PutDiskObject
  PutIconTagList
Include
GuruMeditation
Docs » Autodocs » icon.library » PutDiskObject

NAME

	PutDiskObject - write out a DiskObject to disk.

SYNOPSIS

	status = PutDiskObject(name, diskobj)
D0 A0 A1
BOOL PutDiskObject(STRPTR, struct DiskObject *);

FUNCTION

	This routine writes out a DiskObject structure, and its
associated information. The file name of the info
file will be the name parameter with ".info" postpended
to it. If the call fails, FALSE will be returned. The
reason for the failure may be obtained via IoErr().
As of release V2.0, PutDiskObject() (if successful) notifies Workbench
when an icon has been created/modified.
Using this routine protects you from any future changes to
the way icons are stored within the system.

INPUTS

	name -- name of the object (pointer to a character string)
diskobj -- a pointer to a DiskObject

RESULT

	status -- TRUE if the call succeeded else FALSE

NOTES

	It is recommended that if you wish to copy an icon from one place
to another than you use GetDiskObject() and PutDiskObject()
and do not copy them directly.

SEE ALSO

dos.library/IoErr(), icon.library/DeleteDiskObject(), icon.library/FreeDiskObject(), icon.library/GetDiskObject(), icon.library/GetIconTagList(), icon.library/PutIconTagList()

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Red Sector Inc.

ANA
TRSI
DC
RSI

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se