Problems Setting the Default printer with Win32 API SDK

Problems Setting the Default printer with Win32 API SDK

Author

Message

Timothy Leg#1 / 1

Problems Setting the Default printer with Win32 API SDK

Hi

I have the following code segment in a program thatchanges the default printer. My problem, is that in NT, a (one particular) 16-bit application that I use, will recognize a change to the default printer if it is done via the printer icon in the printers folder but it will not recognize the change performed with this code.

If I change the printer with this, nothing will print at all from that app, until I set the default printer with the printer icon.

Any idea what the printers icons do when they perform the Set as Default?