The usual way is with FindNextPrinterChangeNotification
You can find samples on Google, like Monitor jobs in a printer queue (.NET)
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
I am trying to find how to subscribe to Printer Spooler Events and Poll the same from the spooler.
Till now I have only found some C++ API and most of them are VB and PowerShell based solution in the documentation.
Win32_PrintJob : https://learn.microsoft.com/en-us/windows/win32/cimwin32prov/win32-printjob
Can you please tell me if anything is available in C# ? How to subscribe to those events ?
and if you have some sample code regarding the same ?
Thanks,
Chitranshu
The usual way is with FindNextPrinterChangeNotification
You can find samples on Google, like Monitor jobs in a printer queue (.NET)