in reply to getting printer status from windows
Why can't you connect (what is the error message)?
No error message... The code is running without error but nothing returns, and the code is not exiting.