>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