Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2006.07.30;
Скачать: CL | DM;

Вниз

Очередь печати принтера   Найти похожие ветки 

 
Keks ©   (2006-04-14 11:35) [0]

Как определить что был отправлен документ на печать


 
Keks ©   (2006-04-15 19:47) [1]

я немного полазил в helpe и нашел что Windows передает сообщение WM_SPOOLERSTATUS каждый раз, когда добавляется или удаляется задание на печать.
Подскажите пожалуйста как перехватить это сообщение в моей программе


 
Eraser ©   (2006-04-15 22:04) [2]


> Keks ©   (15.04.06 19:47) [1]

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.

Note The WM_SPOOLERSTATUS message is not supported after Windows XP. To be notified of changes to the print queue status, use FindFirstPrinterChangeNotification and FindNextPrinterChangeNotification. The following code outlines how this might be done.

HANDLE chgObject;
DWORD *pdwChange;
BOOL fcnreturn;

chgObject = FindFirstPrinterChangeNotification( hPrinter, PRINTER_CHANGE_JOB, 0, NULL);
WaitForSingleObject(chgObject, INFINTE);
fcnreturn = FindNextPrinterChangeNotification(chgObject, pdwChange, NULL, NULL);
if (fcnreturn) {
    // check value of *pdwChange and deal with the indicated change


 
Keks ©   (2006-04-16 00:11) [3]

Спасибо



Страницы: 1 вся ветка

Текущий архив: 2006.07.30;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.029 c
15-1151516366
TUser
2006-06-28 21:39
2006.07.30
Диск или контроллер?


6-1142939066
_Mike_
2006-03-21 14:04
2006.07.30
Наиболее мощный Ping-компонент.


15-1151473841
Pazitron_Brain
2006-06-28 09:50
2006.07.30
Как в брандмаэур в SP2 добавить запрещенное приложение?


2-1152599023
Yegorchic
2006-07-11 10:23
2006.07.30
Как определить количество помеченных (checked) items в ListView?


6-1142837533
Piero
2006-03-20 09:52
2006.07.30
Свойства ctBlocking, ctNoNBlocking