https://github.com/slimenull/printjobsviewer
Simple print jobs viewer. 简单打印任务查看器.
https://github.com/slimenull/printjobsviewer
Last synced: 7 months ago
JSON representation
Simple print jobs viewer. 简单打印任务查看器.
- Host: GitHub
- URL: https://github.com/slimenull/printjobsviewer
- Owner: SlimeNull
- License: mit
- Created: 2023-11-04T06:02:59.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-04T06:16:02.000Z (over 2 years ago)
- Last Synced: 2024-12-29T07:17:54.596Z (over 1 year ago)
- Language: C#
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# PrintJobsViewer
Simple realtime print jobs viewer for Windows
## Principle
1. Receive print job change events through the ManagementEventWatcher
2. After obtaining the ID of the print job, query the specific information of the print job through WinAPI,
3. For double-sided printing and the number of print copies, you can obtain DEVMODE and then obtain the information
## APIs used
1. ManagementEventWatcher
2. Printer APIs: OpenPrinter, ClosePrinter, GetJob