🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #11904

Re: Printer.device/Preferences interaction

#11904
From: Dave Berezowski
Date: Tue, 21 Mar 1989 14:40
27 lines
1440 bytes
In article <890318145248.204009ac@elcc.epfl.ch> gay@elde.epfl.ch (David Gay) writes:
>Two questions on the printer.device/preferences interactions:
>
>a) Is it possible to override the preferences printer settings other than
>by actually doing a SetPrefs ?
>
	Yes, use the following code segment to look/alter the printer's
copy of preferences.

	struct IODRPReq PReq;
	struct PrinterData *PD;

	if (OpenDevice("printer.device", 0, &PReq, 0) == NULL) {
		PD = (struct PrinterData *)PReq.io_Device;
		/* now look at PD->pd_Preferences */
		CloseDevice(&PReq);
	}

>b) If not, when are the preferences read by the printer.device ? What happens
>if you change them while the device is open ?
>
	Preferences are read by the printer.device whenever the device is
opended.  If you change preferences (not the printer's copy of preferences)
while the device is opened NOTHING will happen as the printer is using its
own copy.  Alter the printer's copy if you want to change something.

	David
Technical Details
Message-ID: <6353@cbmvax.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ulowell!cbmvax!daveb
References: <890318145248.204009ac@elcc.epfl.ch>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ulowell!cbmvax!daveb
From: daveb@cbmvax.UUCP (Dave Berezowski)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Printer.device/Preferences interaction
Message-ID: <6353@cbmvax.UUCP>
Date: 21 Mar 89 14:40:21 GMT
References: <890318145248.204009ac@elcc.epfl.ch>
Reply-To: daveb@cbmvax.UUCP (Dave Berezowski)
Organization: Commodore Technology, West Chester, PA
Lines: 27