I am trying to create a printer mapping application using the prnadmin.dll, i am getting the error "The parameter is incorrect" when i try to set the parameter" ServerName. I have tried IP address, Logical name etc. But i am unable to get past this issue. If i leave this blank it is creating the port successfully, but if i state the remote machine for which i wish to create the port and then map the printer i can get no further.