Article ID: 160456
Article Last Modified on 11/21/2006
if (pi2->Attributes & PRINTER_ATTRIBUTE_WORK_OFFLINE)
{
DWORD dwStatusMask;
/* set, so clear the bit */
dwStatusMask = ~(DWORD)(PRINTER_ATTRIBUTE_WORK_OFFLINE);
pi2->Attributes = pi2->Attributes & dwStatusMask;
}
else
{
/* not set, so set it */
pi2->Attributes = pi2->Attributes | PRINTER_ATTRIBUTE_WORK_OFFLINE;
}
158828 How To Call Win32 Spooler Enumeration APIs Properly
140285 How to Modify Printer Settings by Using SetPrinter
160129 How To Get the Status of a Printer and a Print Job
Additional query words: 4.00 KbDSI GdiSpool Printer Properties
Keywords: kbhowto KB160456