access network share

  • Thread starter Thread starter Jon the Blind
  • Start date Start date
J

Jon the Blind

How can programmatically I access a network share, specifying credentials
different from those of the loggin-in user of the machine?

Any insights are appreciated.

Thanks.

Jon
 
You need to create a connection to the server in question. Use something
like WNetAddConnection2, which will allow you to specify which credentials
to use. This will not work if the user is already connected to that server
(on a different share).

Jerry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top