How to login remotly

G

Guest

I 'd like to login into a remote computer that has a share . How can i do
this using dotnet ?
 
V

Vadym Stetsyak

Afaik you can't do that using Base Class Library ( BCL ).

For this puprose you can P/Invoke to
NetShareAdd api ( resides in Netapi32.dll )

NetShareAdd is using SHARE_INFO_XXX familiy of structs that depend on to
what OS are you connecting ( NT, 98/ME )
 

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

Top