Windows Vista introduced notifications from the Printer Spooler with the RegisterForPrintAsyncNotifications function (http://msdn.microsoft.com/en-us/library/dd162919(VS.85).aspx)
Does anyone know of any sample code for spooler notifications using that function? I have been unable to find any and it seems strange that Microsoft would publish the method without examples.