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
 
Back
Top