سؤال

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