gioma 19 Posted July 27, 2022 Greetings, I would need that my program to be able to detect that a print has been launched in the operating system and to which printer. I was thinking of using HOOKs, like I do for keyboard and mouse events. I was studying the hooks available on Windows but I still haven't been able to figure out which one can do for me. Can any of you give me some suggestions? Thank you Share this post Link to post
Der schöne Günther 316 Posted July 27, 2022 Not sure about hooks, but it looks the spooler API has what you need DocumentEvent function (Winspool.h) - Win32 apps | Microsoft Docs FindFirstPrinterChangeNotification function (Winspool.h) - Win32 apps | Microsoft Docs 1 Share this post Link to post
gioma 19 Posted July 27, 2022 I found SpyPrinter for Delphis on the embarcadero site that is right for me, if someone else will need it here is the link: http://cc.embarcadero.com/item/20307 🤩 DAJE! Share this post Link to post