diff options
author | Vidar Tonaas Fauske <vidartf@gmail.com> | 2019-04-09 18:19:46 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2019-04-09 18:19:46 (GMT) |
commit | 0e10766574f4e287cd6b5e5860a1ca75488f4119 (patch) | |
tree | 6f501fe8daeaa226bf61905cbeebfd8dfad4f149 /Modules/winreparse.h | |
parent | 8709490f48fc27b3dd1a16acb33bea2299c6a575 (diff) | |
download | cpython-0e10766574f4e287cd6b5e5860a1ca75488f4119.zip cpython-0e10766574f4e287cd6b5e5860a1ca75488f4119.tar.gz cpython-0e10766574f4e287cd6b5e5860a1ca75488f4119.tar.bz2 |
bpo-31512: Add non-elevated symlink support for Windows (GH-3652)
Diffstat (limited to 'Modules/winreparse.h')
-rw-r--r-- | Modules/winreparse.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/winreparse.h b/Modules/winreparse.h index 28049c9..f06f701 100644 --- a/Modules/winreparse.h +++ b/Modules/winreparse.h @@ -45,6 +45,11 @@ typedef struct { FIELD_OFFSET(_Py_REPARSE_DATA_BUFFER, GenericReparseBuffer) #define _Py_MAXIMUM_REPARSE_DATA_BUFFER_SIZE ( 16 * 1024 ) +// Defined in WinBase.h in 'recent' versions of Windows 10 SDK +#ifndef SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE +#define SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE 0x2 +#endif + #ifdef __cplusplus } #endif |