471,310 Members | 961 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,310 software developers and data experts.

to which printer belongs the context menu?


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.


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?


Jan 27 '06 #1
0 1072

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Patrick Herb | last post: by
4 posts views Thread by Mohit Gupta | last post: by
reply views Thread by news.microsoft.com | last post: by
5 posts views Thread by Dean L. Howen | last post: by
8 posts views Thread by Dennis C. Drumm | last post: by
1 post views Thread by goRide | last post: by
15 posts views Thread by Prisoner at War | last post: by
reply views Thread by Frank Rizzo | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.