Connecting Tech Pros Worldwide Forums | Help | Site Map

to which printer belongs the context menu?

eisbaer
Guest
 
Posts: n/a
#1: Jan 27 '06
hi,

i'm trying to write a shell extension for printers in c#. i use the
IContextMenu and IShellExtInit interfaces to insert the menu item in the
context menu - it works fine. my problem is to find out to which printer the
context menu belongs.

example:

i have three printers installed on my system.

1. name: hp 5p port: lpt1
2. name: hp 1160 port: usb001
3. name: local hostprinter port: lpt1

when i click on the 'hp 1160' printer and then on my context menu item the
port of 'local hostprinter' has change to 'usb001'. to do this so i need to
know the name of the printer... how can i do it?

thx

--
eisbaer

Closed Thread