Using DEVMODE Structure to change Orientation
Posted on 1998-06-17
I need to change the printer orientation to Landscape (with no user input) for a Win311 C Program. I've allocated a Global handle for memory and used a cast to (LPDEVMODE) to GlobalLock to a pointer (dmp), then used ExtDeviceMode () to get the driver's data - but when I ask for the data, with a structure variable - dmp->dmDeviceName - I get nada. When I use a far pointer to a string with ExtDeviceMode (), and dump the string with MessageBox the data is there. Anyone know an answer to this one?