Path: 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 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.