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 » GetDefDiskObject

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 WBKICK. If the call fails,
it will return NULL. 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).

RESULT

	diskobj -- the default Workbench disk object in question

NOTES

	icon.library V36 through V40 did not support the WBDEVICE default
icon type.

SEE ALSO

dos.library/IoErr(), icon.library/PutDefDiskObject(), 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:

Fairlight

PHA
SNT
FLT
ATX

Comments:

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