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

	GetDefaultPubScreen -- Get name of default public screen. (V36)

	GetDefaultPubScreen( Namebuff )

	VOID GetDefaultPubScreen( UBYTE * );

	Provides the name of the current default public screen.
	Only anticipated use is for Public Screen Manager utilities,
	since it is easy to open a visitor window on the default
	public screen without specifying the name.

	Namebuff = a buffer of MAXPUBSCREENNAME.  This can be NULL.

	None.  Will provide the string "Workbench" in Namebuff if there
	is no current default public screen.

	This function actually "returns" in register D0 a pointer
	to the public screen.  Unfortunately, the lifespan of
	this pointer is not ensured; the screen could be closed
	at any time.  The *ONLY* legitimate use we can see for
	this return value is to compare for identity with the pointer
	to a public screen you either have a window open in, or
	a lock on using LockPubScreen(), to determine if that
	screen is in fact the default screen.

	Also note that if there no default public screen has been set,
	the return value of this function will be zero, and not a pointer
	to the Workbench screen.

	The function prototype does not reflect the return value.

	SetDefaultPubScreen(), OpenWindow()

[Back to Amiga Developer Docs]