Native VFP commands PrintStatus() or Sys(13) didn't work at all, because both pass by Windows Spooler to get printer status. And Windows Spooler does not reflect the real status of the printer. That means the printer is offline or out of paper or completly disconnected and Windows Spooler returns READY. I think it's possible to bypass the Windows Spooler and connect directly to printer port using Winsock with IP Address. I just want an example of code using "MsWinsock.Winsock" to retrieve printer status. Thank you in advance.
P.S.: Please don't submit me any other code using "winspool.drv"... because it's also passing by Windows Spooler and the status returned is wrong.