문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top