WM_SPOOLERSTATUS消息是当有任务添加或移出打印机管理器队列时由<br>打印机管理器发向窗口的WindowProc函数的。<br>参数含义:<br>wParam :表示PR_JOBSTATUS标志。<br>lParam :低字表示打印机管理器队列中保留的任务数量、<br> 高字没用到。<br><br>在win2000和winXP中,WM_SPOOLERSTATUS消息不会被发出,通报打印机管理器队列<br>状态可以使用FindFirstPrinterChangeNotification和FindNextPrinterChangeNotification<br>函数。<br><br>示例:<br>HANDLE chgObject;<br>DWORD *pdwChange;<br>BOOL fcnreturn;<br><br>chgObject = FindFirstPrinterChangeNotification( hPrinter, PRINTER_CHANGE_JOB, 0, NULL);<br>WaitForSingleObject(chgObject, INFINTE);<br>fcnreturn = FindNextPrinterChangeNotification(chgObject, pdwChange, NULL, NULL);<br>if (fcnreturn) {<br> // check value of *pdwChange and deal with the indicated change<br> <br><br>