[comp.windows.ms.programmer] ANYBODY HAVE A GOOD EXAMPLE OF USING EXTDEVICEMODE...

rdthomps@vela.acs.oakland.edu (Robert D. Thompson) (06/25/91)

	I asked this a while back but received only one reply.

	It was fairly easy to load the library for the required
	driver, then get the procedure address of ExtDeviceMode,
	the call this procedure with NULL to get the required
	structure size, then fill the structure.

	The problem I am having is in setting the settings in
	the WIN.INI  The first time I call ExtDeviceMode it
	works great, but the second time it fills the section
	with 0 values and such.

	THE REAL KICKER is that it only works the first time
	within any Windows Session.  In other words, my app.
	will re-set the settings correctly the first time.

	But the following attempts, even if I close and restart
	my app, the settings are not changed.

	I would appreciate some related samples, or comments, or
	anything that might be of help.

	Thanks...Regards |(8>
---
Robert
rdthomps@vela.acs.oakland.edu