Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Thu, 3 Apr 2008 01:41:01 -0700,    group: microsoft.public.win32.programmer.gdi        back       


How to get Printer Added notification PRINTER_CHANGE_ADD_PRINTER   
Hi All,

I have developed a mulithreaded app where in I look for notification changes 
of printer using FindFirstPrinterChangeNotification() and 
FindNextPrinterChangeNotification().

In FindFirstPrinterChangeNotification() I am passing PRINTER_CHANGE_PRINTER 
as condition to monitor.
As per MSDN when printer is deleted from system I am getting 
PRINTER_CHANGE_DELETE_PRINTER notification. However when a printer is newly 
configured to system I am mot getting PRINTER_CHANGE_ADD_PRINTER notification.

Please suggest. It is urgent.
Thanks in advance.

Ajay
date: Thu, 3 Apr 2008 01:41:01 -0700   author:   Ajay Shinde

Re: How to get Printer Added notification PRINTER_CHANGE_ADD_PRINTER   
On Apr 3, 1:41 am, Ajay Shinde 
wrote:
> Hi All,
>
> I have developed a mulithreaded app where in I look for notification changes
> of printer using FindFirstPrinterChangeNotification() and
> FindNextPrinterChangeNotification().
>
> In FindFirstPrinterChangeNotification() I am passing PRINTER_CHANGE_PRINTER
> as condition to monitor.
> As per MSDN when printer is deleted from system I am getting
> PRINTER_CHANGE_DELETE_PRINTER notification. However when a printer is newly
> configured to system I am mot getting PRINTER_CHANGE_ADD_PRINTER notification.
>
> Please suggest. It is urgent.
> Thanks in advance.
>
> Ajay


Hi,

The flag PRINTER_CHANGE_PRINTER is a general flag. You can
set one or More of the following specific flags:

	PRINTER_CHANGE_ADD_PRINTER

	PRINTER_CHANGE_DELETE_PRINTER

	PRINTER_CHANGE_FAILED_CONNECTION_PRINTER

http://msdn2.microsoft.com/en-us/library/ms536031.aspx

Kellie.
date: Thu, 3 Apr 2008 12:09:42 -0700 (PDT)   author:   Kellie Fitton

Re: How to get Printer Added notification PRINTER_CHANGE_ADD_PRINT   
Thanks Kellie for the reply,

If we use PRINTER_CHANGE_PRINTER general flag, it shall give all 
PRINTER_CHANGE_ADD_PRINTER PRINTER_CHANGE_SET_PRINTER 
PRINTER_CHANGE_DELETE_PRINTER PRINTER_CHANGE_FAILED_CONNECTION_PRINTER 
notifications.

For this reason only i am able to get PRINTER_CHANGE_DELETE_PRINTER 
notification, though i have set PRINTER_CHANGE_PRINTER flag.

However for my wonder PRINTER_CHANGE_ADD_PRINTER  notification is not coming.
Please suggest.

Thanks,
Ajay

"Kellie Fitton" wrote:

> On Apr 3, 1:41 am, Ajay Shinde 
> wrote:
> > Hi All,
> >
> > I have developed a mulithreaded app where in I look for notification changes
> > of printer using FindFirstPrinterChangeNotification() and
> > FindNextPrinterChangeNotification().
> >
> > In FindFirstPrinterChangeNotification() I am passing PRINTER_CHANGE_PRINTER
> > as condition to monitor.
> > As per MSDN when printer is deleted from system I am getting
> > PRINTER_CHANGE_DELETE_PRINTER notification. However when a printer is newly
> > configured to system I am mot getting PRINTER_CHANGE_ADD_PRINTER notification.
> >
> > Please suggest. It is urgent.
> > Thanks in advance.
> >
> > Ajay
> 
> 
> Hi,
> 
> The flag PRINTER_CHANGE_PRINTER is a general flag. You can
> set one or More of the following specific flags:
> 
> 	PRINTER_CHANGE_ADD_PRINTER
> 
> 	PRINTER_CHANGE_DELETE_PRINTER
> 
> 	PRINTER_CHANGE_FAILED_CONNECTION_PRINTER
> 
> http://msdn2.microsoft.com/en-us/library/ms536031.aspx
> 
> Kellie.
> 
>
date: Tue, 8 Apr 2008 05:03:02 -0700   author:   Ajay Shinde

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us