Article View: comp.sys.amiga.tech
Article #10420Re: Finding The Workbench Screen
From: Chuck McManis
Date: Mon, 28 Nov 1988 20:47
Date: Mon, 28 Nov 1988 20:47
29 lines
1400 bytes
1400 bytes
In article <6356@netnews.upenn.edu> (R. Bhatnagar) writes:
> How can I find the screen structure for the current Workbench
> Screen short of opening a window on it and then looking in
> the Window structure?
Use the 1.2 function GetScreenData().
NAME
GetScreenData -- Get a copy of a screen data structure
SYNOPSIS
Success = GetScreenData(Buffer, Size, Type, Screen)
D0 A0 D0 D1 A1
BOOL Success
CPTR *Buffer
USHORT Size;
USHORT Type;
struct Screen *Screen;
For the workbench screen call :
suc = GetScreenData(buff, sizeof(struct Screen), WBENCHSCREEN, NULL);
Now buff will have a copy of the workbench screens structure in it.
Success == TRUE;
--Chuck McManis
uucp: {anywhere}!sun!cmcmanis BIX: cmcmanis ARPAnet: cmcmanis@sun.com
These opinions are my own and no one elses, but you knew that didn't you.
Technical Details
Message-ID:
<79135@sun.uucp>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!unmvax!pprg.unm.edu!hc!ames!pasteur!agate!labrea!decwrl!sun!pepper!cmcmanisReferences:
<6356@netnews.upenn.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!unmvax!pprg.unm.edu!hc!ames!pasteur!agate!labrea!decwrl!sun!pepper!cmcmanis From: cmcmanis%pepper@Sun.COM (Chuck McManis) Newsgroups: comp.sys.amiga.tech Subject: Re: Finding The Workbench Screen Message-ID: <79135@sun.uucp> Date: 28 Nov 88 20:47:29 GMT References: <6356@netnews.upenn.edu> Sender: news@sun.uucp Reply-To: cmcmanis@sun.UUCP (Chuck McManis) Distribution: na Organization: Sun Microsystems, Mountain View Lines: 29