2

is there a WIN32 API available to manage folder sharing in Windows? Some links to examples will be helpful. Thanks.

Jon Seigel
  • 12,251
  • 8
  • 58
  • 92
Bharani
  • 303
  • 1
  • 8
  • 16

2 Answers2

9

Yes, since Windows 2000 Professional there's a networking API available in netapi32.dll which provides this functionality. Functions like NetShareAdd, NetShareCheck, NetShareDel let you manage the shared files. See

http://msdn.microsoft.com/en-us/library/bb525393(VS.85).aspx

for more information,

Frerich Raabe
  • 90,689
  • 19
  • 115
  • 207
0

There is a tutorial for doing this with C#, might be some help?

Colin Pickard
  • 45,724
  • 13
  • 98
  • 148