how to know a priting job has finished, if I do NOT use "spooler". I have to wait until it finishes and then continue the next procedure. -- SHINKYOKU
On Apr 12, 8:24 am, SHINKYOKU wrote: > how to know a priting job has finished, if I do NOT use "spooler". > I have to wait until it finishes and then continue the next procedure. > -- > SHINKYOKU Hi, You can use the following APIs to get the printer status: GetDefaultPrinter() OpenPrinter() GetPrinter() PRINTER_INFO_6 ........................................... ........................................... ClosePrinter() http://msdn2.microsoft.com/en-us/library/ms535475.aspx http://msdn2.microsoft.com/en-us/library/ms536027.aspx http://msdn2.microsoft.com/en-us/library/ms535494.aspx http://msdn2.microsoft.com/en-us/library/ms535648.aspx http://support.microsoft.com/default.aspx?scid=kb;en-us;160129 Kellie.
thanks bro! according to my trying, FindFirstPrinterChangeNotification might help -- SHINKYOKU