1
Vote

how to get network username

description

Sir,
  1. How to get network Username from this dll?
  2. how to stop monitor?

comments

Merrion wrote Oct 28, 2015 at 10:36 AM

To stop monitioring a printer use the RemovePrinter(devicename) method
( https://printqueuewatch.codeplex.com/wikipage?title=PrinterMonitorComponent )

To stop all monitoring call the Disconnect() method.

To get the network user name look in PrintJob.Username - it should be set to that?

pk0501 wrote Mar 21, 2016 at 6:30 AM

PrintJob.Username showing only system username where software installed not showing username of network system.