Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Capture Add and Delete printer event

Status
Not open for further replies.

Kirilla

Programmer
Jul 12, 2000
101
HU
Hi.

I've made a very simple application, which is enum installed printers using EnumPrinters API. But, I have no idea, how can I catch the Add and Delete printer events.
I would like to reenumerate printers, if somebody adds or removes a printer.

best regards,

Kirilla
 
I'd suggest doing EnumPrinters periodically, and check to see if something changes.

Will
 
Hi.

Thanks for your answer. I have also thought of it,but that is the thing I would not like to do. I would rather use hook or some ChangeNotification method.

best regards,

Kirilla
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top