Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programatically creating and deleting shares
Message
From
19/10/1998 20:20:53
 
 
General information
Forum:
Visual C++
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00148327
Message ID:
00148341
Views:
21
Use NetShareAdd() to create a share and NetShareDel() to... Both are Win32 API functions.

Do a search for NetShare.c in the MSDN. It's a C program that shows how to use NetShareAdd(). NetShareDel() is very simple, I don't think you need an example.

Vlad

>I need to programatically create and delete shares. I have been putzing with some API's but none have really been doing a clean job. If anyone could help me out I would SO appreciate it.
>
>This could really be in VC, VB, VFP or whatever, as it will be a standalone. If anyone could point me at some good sample code I would be forever indebted. :)
>
>Joe Johnston
>(The Guy With The Bullseye On His Back)
Previous
Reply
Map
View

Click here to load this message in the networking platform