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!