Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for printerinfo.cs

(view source code of printerinfo.cs as plain text)

  1. // Author : Bas van der Woude
  2. // Date   : 2011-03-31
  3.  
  4.  
  5. namespace RobvanderWoude
  6. {
  7. 	public class PrinterInfo
  8. 	{
  9. 		public string Name { get; set; }
  10. 		public uint Status { get; set; }
  11. 		public uint PrintJobCount { get; set; }
  12. 		public WMIActionResult ActionResult { get; set; }
  13. 	}
  14.  
  15. 	public enum WMIActionResult
  16. 	{
  17. 		Success = 0,
  18. 		AccessDenied = 5,
  19. 		Other = 8
  20. 	}
  21.  
  22. 	public enum WMIPrinterStatus
  23. 	{
  24. 		Other = 1,
  25. 		Unknown = 2,
  26. 		Idle = 3,
  27. 		Printing = 4,
  28. 		Warmup = 5,
  29. 		StoppedPrinting = 6,
  30. 		Offline = 7,
  31. 		Paused = 8,
  32. 		Error = 9,
  33. 		Busy = 10,
  34. 		NotAvailable = 11,
  35. 		Waiting = 12,
  36. 		Processing = 13,
  37. 		Initialization = 14,
  38. 		PowerSave = 15,
  39. 		PendingDeletion = 16,
  40. 		IOActive = 17,
  41. 		ManualFeed = 18
  42. 	}
  43.  
  44. }
  45.  

page last uploaded: 2017-07-06, 12:37