Specifications

B-7
Appendix B
Implementation in Monitor Thread
8/6/2010 KR203 Software Integrator Guide P1028248-001 Rev. A
SendMessage(hWnd, WM_SETTEXT, 0,
(LPARAM)(L"Timeout, no status happened"));
}
else
{
dwRet = GetLastError();
swprintf_s( str, 50, L"### Wait function failed!
[%d]\n", dwRet);
OutputDebugString(str);
}
}
SendMessage(hWnd, WM_SETTEXT, 0, (LPARAM)(L"Leaving
Status Thread"));
AfxEndThread( 1 );
return 1;
}
When an event occurs, the status with GetPrinterData using the “Error” key will need to be
obtained, and the result decoded according to the sample or an equivalent manner. In any
case a message can be sent, or any form of status reporting can be done.