INFO: Other Permissions Information Available with NetFileEnum

Last reviewed: November 21, 1997
Article ID: 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)

REFERENCES

"Lan Manager Programmer's Reference," Microsoft, page 24, Microsoft Press, 1990

Win32 SDK include Files: lmaccess.h

Keywords          : NtwkLmapi
Version           : WINNT:
Platform          : winnt
Issue type        : kbinfo


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 21, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.