Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi, I am using an API WNetAddConnec

Status
Not open for further replies.

patelr

Programmer
Oct 10, 2002
17
CH
Hi, I am using an API WNetAddConnection2 to map a drive and am getting return code 1219, does anyone know how to resolve this code in to a meaningful error message?


Thanks in advance
 
Does this give a clue refer MSDN Q183366

For an initial connection, if you use NULL for lpPassword or lpUsername, the interactive user's credentials are used by default. If there has been a successful initial connection to the server, subsequent attempts to open a connection using a different set of credentials results in error 1219 (ERROR_SESSION_CREDENTIAL_CONFLICT), which indicates a conflict between the supplied set of credentials and the existing one. To establish a connection using a different set of credentials, first you have to cancel the existing connections to the server using WNetCancelConnection2().
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top