WM_SPOOLERSTATUS message

The WM_SPOOLERSTATUS message is sent from Print Manager whenever a job is added to or removed from the Print Manager queue.

A window receives this message through its WindowProc function.

LRESULT CALLBACK WindowProc(
  HWND hwnd, 
  UINT  uMsg, 
  WPARAM wParam, 
  LPARAM lParam     
);

Parameters

wParam

The PR_JOBSTATUS flag.

lParam

The low-order word specifies the number of jobs remaining in the Print Manager queue.

Return value

An application should return zero if it processes this message.

Remarks

This message is for informational purposes only. This message is advisory and does not have guaranteed delivery semantics. Applications should not assume that they will receive a WM_SPOOLERSTATUS message for every change in spooler status.

The WM_SPOOLERSTATUS message is not supported after Windows XP. To be notified of changes to the print queue status, you can use FindFirstPrinterChangeNotification and FindNextPrinterChangeNotification.

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Header
Winuser.h (include Windows.h)

See also

Printing

Print Spooler API Messages

FindFirstPrinterChangeNotification

FindNextPrinterChangeNotification