#110 Incorrect/missing file attribute constants

closed-fixed
nobody
None
5
2011-11-06
2011-03-08
No

The seems to be some issues with the windows file attribute constants in win32/Lib/winnt.py.
* FILE_ATTRIBUTE_ENCRYPTED seems to have incorrect value.
* FILE_ATTRIBUTE_DEVICE, FILE_ATTRIBUTE_NOT_CONTENT_INDEXED and FILE_ATTRIBUTE_VIRTUAL are missing.

Discussion

  • The constants are retrieved from my local Windows SDK in:
    C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\WinNT.h

    I don't know if redistributing this fille is allowed, but you can find identical typedefs in (with the exception of FILE_ATTRIBUTE_VIRTUAL):
    http://source.winehq.org/source/include/winnt.h

     
  • Mark Hammond
    Mark Hammond
    2011-11-06

    Thanks - the win32con patch already seems to have been applied, but I just imported and pushed your winnt change.

     
  • Mark Hammond
    Mark Hammond
    2011-11-06

    • status: open --> closed-fixed