Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connected printers
Message
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00565822
Message ID:
00566125
Views:
21
>George,
>
>I expected something like this ;-)
>I found a piece of code on MSDN on how to iterate the printers defined. The problem is that W95 uses both the win.ini and the registry to store this. To complicate things, it is very easy to get these out of sync leaving the list returned in a state of chaos. NT only stores it in the registry and is therefor a lot more reliable.
>
>Thanx for the info.
>
>Regards,
>
Ron,

Sorry, I didn't mention that the approach might not be reliable for NT/2K. I haven't worked that much in that platform and it slipped my mind.

I don't know what problem there might be that would get these out of sync in Win9x/Me. If a 16 bit application modifies win.ini and then properly uses SendMessage() to advise all top-level windows of the change for example (changing the default printer), then I think that Windows automatically updates the registry accordingly. I believe that this is accurate, but may be missing some details. I am, however, sure that under that platform there is a correlation maintained between the values in win.ini and the registry.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform