I am developing a print monitor in c++. But I'm having trouble getting the file SPL. After much research I discovered that I had to insert the path of the folder where you store the .spl files in spoolerDirectory key.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Print\Printers\'printername'\SpoolDirectory = c:\windows\system32\spool\printers
The problem that this change only takes effect after restarting the spool service.
As I am monitoring jobs printing, when I restart the spooler i will lose all my objects.
There is another way to solve my problems? Tanks!