Map Network Drive Function

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

Is there an API call for mapping a network drive? i think i am using the
right expression but i am referring to something in the same realm as
InitiateSystemShutdown. That's an API call right?
 
greatbarrier86,

Well, it's in the same realm in the sense that it is an API function
from the Windows API, but you definitely don't want to call that if you want
to map a network drive =)

If you want to map a network share to a drive, then you can use the
WNetAddConnection2 or WNetAddConnection3 functions through the P/Invoke
layer.
 

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