Can I read the sharing permissions assigned to a shared folder? I can read in programmaticaly local security settings (those under the right mouse button> Properties> Security), without any problems. But I wonder how I can read permissions in the Right-Click> Sharing and Security ... section> Permissions
Here is the permissions image I want to read:

Is it possible? I am using an XP Pro computer if this helps.
Edit:
In accordance with my answer, I managed to iterate over all shared resources and gain access to (that is, the person who runs the program) on this resource, but did not find a way to read other rights to this share. This was done using the Win32_Share class , but it does not have the ability to obtain permissions to access other users. If anyone has any helpful tips that will be a huge help.
source
share