Connecting Tech Pros Worldwide Forums | Help | Site Map

Visual Basic PortDelete problems in Vista

Newbie
 
Join Date: Aug 2008
Posts: 2
#1: Aug 19 '08
I am having problems with adding a deleting a printer port in code for Windows Vista. I am creating the port with AddPortEx() (I know this is obsolete, but the adding works in Vista, so I have no motivation to find something that works in Vista). To delete the port, I call DeletePort(). In OS's previous to Vista, this delete works, however in Vista, i get the error message "The requested resource is in use." Is there a different way to do this in Vista so it will work? I know there is a way, I just don't know what it is. :-P

Thanks!

Newbie
 
Join Date: Aug 2008
Posts: 2
#2: Aug 25 '08

re: Visual Basic PortDelete problems in Vista


Sorry, I meant DeletePort, not PortDelete. Sorry. Any thoughts?
Reply