Microsoft KB Archive/176738

{|
 * width="100%"|

INFO: Other Permissions Information Available with NetFileEnum

 * }

Q176738

-

The information in this article applies to:


 * Microsoft Win32 Software Development Kit (SDK)

-

SUMMARY
The field fi3_permissions in the FILE_INFO_3 structure returned in the call NetFileEnum and NetFileGetInfo functions might return more values than those documented in the Win32 SDK.

The additional values are related to the access permissions for the file rather than the file editing permissions. Access permissions enable the user to execute a program, delete a file, and change the attributes and permissions of the file.

MORE INFORMATION
The documentation lists three possible values that can be found in the bitmask for the fi3_permissions field:

"fi3_permissions:" Specifies the access permissions of the opening application. This member can be any of the following values:

Value                    Meaning -                    --- PERM_FILE_READ    = 0x01  Permission to read a resource and, by default, execute the resource. PERM_FILE_WRITE  = 0x02  Permission to write to a resource. PERM_FILE_CREATE = 0x04  Permission to create a resource; data can be                          written when creating the resource. However, there are additional possibilities that are not documented in the SDK or the header files. Users do not need to check these values, but the additional values might cause some confusion. They are listed here for clarification.

from lmaccess.h:
ACCESS_EXEC      = 0x08  Execute Permission (X) ACCESS_DELETE    = 0x10  Delete Permission (D) ACCESS_ATRIB     = 0x20  Change Attribute Permission (A) ACCESS_PERM      = 0x40  Change ACL Permission (P)