🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #3164

What's The Deal with EXTDEVICEMODE(...) ...

#3164
From: Robert D. Thompson
Date: Mon, 10 Jun 1991 04:25
30 lines
1465 bytes
	Has anyone out there worked with ExtDeviceMode() before.

	The usage is pretty unclear from the SDK Manuals, in Vols 1 and 2
	and in the Guide To Programming.

	I want to get the printer device initialization info.  To do this
	I need to load the driver and get the procedure
	address "ExtDeviceMode" in the driver library.  Then I call 
	ExtDeviceMode with wMode set to 0 and get the required # of
	bytes for the buffer that will contain the device info.

	The problem is when I try to call ExtDeviceMode the second time
	with wMode as DM_COPY.  I call it as such,

  (lpfnEDM)(hWnd,hDriver,lpNew,"PostScript Printer","LPT1:",NULL,NULL,DM_COPY);

	But then I get the 'ol UAE-Screw >:(

	Of course, lpNew is where I think the problem is.  But I have tried
	allocating this as LPSTR with the required size, and as DEVMODE*size.

	Maybe someone that has worked with this before can help.

	Thanks in advance.

	Regards |(8>
---
Robert
rdthomps@vela.acs.oakland.edu
Technical Details
Message-ID: <6940@vela.acs.oakland.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!umich!vela!rdthomps

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!umich!vela!rdthomps
From: rdthomps@vela.acs.oakland.edu (Robert D. Thompson)
Newsgroups: comp.windows.ms.programmer
Subject: What's The Deal with EXTDEVICEMODE(...) ...
Message-ID: <6940@vela.acs.oakland.edu>
Date: 10 Jun 91 04:25:01 GMT
Reply-To: rdthomps@vela.acs.oakland.edu (Robert D. Thompson)
Distribution: world
Organization: Oakland University, Rochester MI
Lines: 30