INF: Spooler Limit of 20 Print Jobs

ID Number: Q26000

2.03 2.10 3.00

WINDOWS

Summary:

The WM_SPOOLERSTATUS message broadcasts a message from the spooler

that tells when the spooler reaches its job limit. Under this

WM_SPOOLERSTATUS message, if wParam is PR_JOBSTATUS, lParam will

indicate the number of jobs remaining in the spooler. This message is

sent whenever an ENDJOB message is processed (job printing is

finished).

The following sample WndProc code demonstrates how to use the

WM_SPOOLERSTATUS message:

case WM_SPOOLERSTATUS:

if (wParam == PR_JOBSTATUS) { /* PR_JOBSTATUS == 0 */

itoa ( LOWORD(lParam), buff, 5);

MessageBox( hWnd, (LPSTR)buff,

(LPSTR)"Number of Jobs Remaining", MB_OK);

}

else {

itoa ( wParam, buff, 5);

MessageBox( hWnd, (LPSTR)buff,

(LPSTR)"Unknown Spooler Message", MB_OK);

}

break;