Pergunta

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?

Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top