summaryrefslogtreecommitdiffstats
path: root/Modules/winreparse.h
diff options
context:
space:
mode:
authorVidar Tonaas Fauske <vidartf@gmail.com>2019-04-09 18:19:46 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2019-04-09 18:19:46 (GMT)
commit0e10766574f4e287cd6b5e5860a1ca75488f4119 (patch)
tree6f501fe8daeaa226bf61905cbeebfd8dfad4f149 /Modules/winreparse.h
parent8709490f48fc27b3dd1a16acb33bea2299c6a575 (diff)
downloadcpython-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.h5
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