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:
00565853
Views:
17
>How can I check what is connected to my lpt-ports and if the connected device is online.
>I need to do this from FPW26...
>
>Thanks,
>
>Ron

You'd have to check the WIN.INI file to determine what the printers and printer ports are. The easiest way to do this is either to load Foxtools and use the GetProfileString() function in the API to check the various sections of the file (Windows, Ports, Printers) or parse the file using low level file I/O.

As for telling if the printer is on-line or not, even Windows doesn't know that. That functionality is handled through the printer driver which is accessed by winspool.drv. Sorry.
George

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

Click here to load this message in the networking platform