Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NetShareAdd problem

Status
Not open for further replies.

EugeneG

Technical User
Oct 2, 2001
7
0
0
US
Hello, All,
I needed a simple folder creation and sharing automation under Win98 and decided to use VC++ 6.0 and API functions. All it does is reading through a text file of account names, creates folders, generates a random pwd, shares folders and prints a report. Everything works fine (folder do get shared, shares persist after restart, access pwd is set), BUT the folder bitmaps do not change to the shared "hand", and the sharing properties cannot be seen if you right-click->properties (says "Not Shared"). Although shared they are. Is this normal? The code I used for sharing was basically copy-pasted from msdn
with minor changes like full sharing pwd and the persist flag.
Thanks for your help!
 
Try to add this:
SHChangeNotify(SHCNE_NETSHARE, SHCNF_PATH, pDirectoryToShare, NULL);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top