>DEVMODE and DEVNAMES are definitely other structures. Doesn't MS have a vision plan? < gd&rvf >
Arrgh. Well, I did say it was a
quick glance. :-) I saw the Hungarian notation "h" and figured it was just your average old integer. At closer examination, these will be the two sticking points. The two pointers to a callback procedure should be able to be safely set to NULL (after setting the appropriate flags in the Flags param). The same goes for hInstance. As for DEVMODE and DEVNAMES, I believe Ed Rauh's CLSHEAP should do the trick. (DEVMODE sure looks nasty, though.) Unfortunately, I'm way too busy today to hammer out the sample code (new testing toys, woo hoo!).
Mike Stewart