This is an article covering your problem, with source code and examples:
http://www.codeproject.com/dotnet/pinvokeaddshare.asp
Title of this article says how to create a file share using .NET framework.
But if you really get down to bottom of it, there is no class or method in
..NET framework that accomplishes this task. This is the time when we take
help from PInvoke to call unmanaged Win32 API. The NetApi in Win32 platform
provides a rich set of functions that allows us to do network management.
--
Greetz,
Jan
__________________________________
Read my weblog:
http://weblogs.asp.net/jan
"Chris Fink" <ch*********@hotmail.com> schreef in bericht
news:uU**************@TK2MSFTNGP12.phx.gbl...
Hi,
Attempting to determine if a drive mapping is present, and if it is not,
want to connect it. Anyone familiar with the .net classes that I would
use to accomplish this?
Thanks in advance.
Sample code is appreciated.