|
The landlord misunderstood,
level refers to the type used
When level is 2, buf uses SHARE_INFO_2 structures.
When the level is 502, buf uses SHARE_INFO_502 structures.
And you can set permissions, SHARE_INFO_502.shi502_permissions is to set permissions, including the following permissions:
ACCESS_READ Permission to read data from a resource and, by default, to execute the resource.
ACCESS_WRITE Permission to write data to the resource.
ACCESS_CREATE Permission to create an instance of the resource (such as a file); data can be written to the resource as the resource is created.
ACCESS_EXEC Permission to execute the resource.
ACCESS_DELETE Permission to delete the resource.
ACCESS_ATRIB Permission to modify the resource's attributes (such as the date and time when a file was last modified).
ACCESS_PERM Permission to modify the permissions (read, write, create, execute, and delete) assigned to a resource for a user or application.
ACCESS_ALL Permission to read, write, create, execute, and delete resources, and to modify their attributes and permissions. |
|