Re: API NetShareAdd not really working
- From: "Nobody" <nobody@xxxxxxxxxx>
- Date: Wed, 26 Aug 2009 12:35:18 -0400
As Ralph suggested, this is normal. Sharing is one thing, and setting the
permissions is another. However, if this is intended for general use,
downloadable product, then leave both the sharing and permissions to the end
user's network administrators. If you do it yourself, they will hate it
because it seems like someone changed their network security without their
knowledge.
If this is for a single user, then it can be done with a batch file using
"NET SHARE" and CACLS or SetACL. In VB, you can set the permissions using
the routines in the following article:
How to use low-level access control APIs from Visual Basic
http://support.microsoft.com/kb/316440
Also see Q240176: "HOWTO: Set Security on a NTFS Folder Programmatically" in
MSDN Library Oct 2001, but the routines in the article above are easier to
use.
.
- Follow-Ups:
- Re: API NetShareAdd not really working
- From: Eduardo
- Re: API NetShareAdd not really working
- References:
- API NetShareAdd not really working
- From: Eduardo
- API NetShareAdd not really working
- Prev by Date: Re: How to execute script code line by line?
- Next by Date: Re: Tooltips On Menus
- Previous by thread: Re: API NetShareAdd not really working
- Next by thread: Re: API NetShareAdd not really working
- Index(es):
Relevant Pages
|