Question

I want to write a program with C/C++ for disabling net share folders and to prevent users from create a new share folder. Does anyone know the methods?

Was it helpful?

Solution

There is a method of doing it with C++ here.

Here is another stackoverflow question that addresses a similar issue.

In short, you need to call GetNamedSecurityInfoW() method with appropriate parameters to get the security descriptor of the folder and then you have to modify the ACL of the folder through methods explained here.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top