This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steve.dower
Recipients paul.moore, steve.dower, tim.golden, zach.ware
Date 2019-08-02.17:23:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1564766597.45.0.90249654152.issue37746@roundup.psfhosted.org>
In-reply-to
Content
We currently do not provide the standard access type constants anywhere, despite providing some of the specific access type flags (e.g. in `winreg`):

#define DELETE                           (0x00010000L)
#define READ_CONTROL                     (0x00020000L)
#define WRITE_DAC                        (0x00040000L)
#define WRITE_OWNER                      (0x00080000L)
#define SYNCHRONIZE                      (0x00100000L)

#define STANDARD_RIGHTS_REQUIRED         (0x000F0000L)

#define STANDARD_RIGHTS_READ             (READ_CONTROL)
#define STANDARD_RIGHTS_WRITE            (READ_CONTROL)
#define STANDARD_RIGHTS_EXECUTE          (READ_CONTROL)

#define STANDARD_RIGHTS_ALL              (0x001F0000L)

#define SPECIFIC_RIGHTS_ALL              (0x0000FFFFL)

I'm not sure where the best place to expose them would be. `os` (`nt`) seems best, but it's 99% a POSIX shim that doesn't actually have anything Windows-specific exposed, and `_winapi` is not public.

They're likely already available through pywin32 or similar, but given their use with `winreg` we should probably at least make them available there.
History
Date User Action Args
2019-08-02 17:23:17steve.dowersetrecipients: + steve.dower, paul.moore, tim.golden, zach.ware
2019-08-02 17:23:17steve.dowersetmessageid: <1564766597.45.0.90249654152.issue37746@roundup.psfhosted.org>
2019-08-02 17:23:17steve.dowerlinkissue37746 messages
2019-08-02 17:23:17steve.dowercreate