Are you sure 0x3 value (0x1 | 0x2) is valid for
VALID_SYMBOLIC_LINK_FLAGS on every OS from 7 to 10?

Dnia 2017-05-27, sob o godzinie 11:14 +0000, Samuel Leslie pisze:
> The MSDN documentation doesn't appear to have been updated yet:
> https://msdn.microsoft.com/en-us/library/windows/desktop/aa363866(v=v
> s.85).aspx
> 
> But you can find the details on the official developer blog:
> https://blogs.windows.com/buildingapps/2016/12/02/symlinks-windows-10
> /
> 
> Signed-off-by: Samuel D. Leslie <[email protected]>
> ---
>  mingw-w64-headers/include/winbase.h | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/mingw-w64-headers/include/winbase.h b/mingw-w64-
> headers/include/winbase.h
> index 7e12bcbd..dd3a1b46 100644
> --- a/mingw-w64-headers/include/winbase.h
> +++ b/mingw-w64-headers/include/winbase.h
> @@ -2872,8 +2872,9 @@ extern "C" {
>  #if _WIN32_WINNT >= 0x0600
>  
>  #define SYMBOLIC_LINK_FLAG_DIRECTORY (0x1)
> +#define SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE (0x2)
>  
> -#define VALID_SYMBOLIC_LINK_FLAGS SYMBOLIC_LINK_FLAG_DIRECTORY
> +#define VALID_SYMBOLIC_LINK_FLAGS (SYMBOLIC_LINK_FLAG_DIRECTORY |
> SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE)
>  
>    WINBASEAPI BOOLEAN APIENTRY CreateSymbolicLinkA (LPCSTR
> lpSymlinkFileName, LPCSTR lpTargetFileName, DWORD dwFlags);
>    WINBASEAPI BOOLEAN APIENTRY CreateSymbolicLinkW (LPCWSTR
> lpSymlinkFileName, LPCWSTR lpTargetFileName, DWORD dwFlags);
> --
> -------------------------------------------------------------------
> -----------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Attachment: signature.asc
Description: This is a digitally signed message part

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to