>>>Post it here - even if it doesn't work. Just need the idea, to get pointed into right direction. And I don't care if it's ugly, I won't show it to anyone :).
>>
>>Sorry for taking so long. I guess I was beaten. My mind was completely blank and I'm starring at my monitor for hours! Well, sorry for the intro <*bg*>
>
>Happens on Fridays. They should be spelled "Frydays", when the mind is fried :).
>
>>Anyway, this is what I can come up with. I only tested on WinXP. Not sure if it will work on Win2K, but surely it won't work under Win9X/ME because the printer dialog interface is completely different. But once you know the work of it, you can adjust the "searching". Hope it works :)
>
>Wow! This IS heavy artilery!
>
>I'll play with this tomorrow - I have a fryday today, and won't trust myself to get this right.
>
>In case of W9x, I'd probably just skip the whole thing and let them print... those poor guys don't need me to add to their troubles :). And I somehow don't expect the average user of the app to have anything old installed. These are the guys with new laptops :)
Arrghg, there is a wrong thing in that sample. For the GlobalUnlock, it should be unlocking the handle instead of the pointer.
GlobalUnlock( pDevMode )
GlobalUnlock( hDevMode )
Herman