TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
mostert
NA
8
0
Printer Management
May 16 2005 5:37 AM
Hey, im busy writing a print server which needs to obviously be able to add printers, current i can add the printer port bu i cant delete ports or get a handle to them any help? Currently im using the prnadmin.dll from the windows server 2003 resource kit. Any help? Here is my current code: try { PrintMasterClass oPrinterMaster = new PrintMasterClass(); PortClass oPort =new PortClass(); oPrinterMaster.PortGet("",strPrinterPortName,oPort); oPrinterMaster.PortDel(oPort); System.Windows.Forms.MessageBox.Show(strPrinterPortName + " port deleted"); return true; } catch (Exception err) { System.Windows.Forms.MessageBox.Show(err.Message.ToString()); return false; }
Reply
Answers (
0
)
Search for keywords inside word and excell documents
Handling System Events