Ignore ERROR_NOT_FOUND in File.Encrypt test (dotnet/corefx#41604)
authorJan Kotas <jkotas@microsoft.com>
Mon, 7 Oct 2019 23:10:21 +0000 (16:10 -0700)
committerGitHub <noreply@github.com>
Mon, 7 Oct 2019 23:10:21 +0000 (16:10 -0700)
commitb6882078d7187bc94d018281cd05ea463d50e947
treed5c113b6fb2049423cd29d2fc82bfa69fc8395d2
parent4ce8ea1540dad38f27eb858a333c368641c8199a
Ignore ERROR_NOT_FOUND in File.Encrypt test (dotnet/corefx#41604)

Makes the test pass when EFS (Encrypted File System) is not available.

I have also fixed the interop definition for Encrypt/DecryptFile P/Invokes while I was on it.

Fixes dotnet/corefx#39211

Commit migrated from https://github.com/dotnet/corefx/commit/8c8bf07d52389d8a2948460d4f7e0dba112c20a0
src/libraries/Common/src/Interop/Windows/Advapi32/Interop.EncryptDecrypt.cs [moved from src/libraries/Common/src/Interop/Windows/Kernel32/Interop.EncryptDecrypt.cs with 86% similarity]
src/libraries/Microsoft.IO.Redist/src/Microsoft.IO.Redist.csproj
src/libraries/System.IO.FileSystem/src/System.IO.FileSystem.csproj
src/libraries/System.IO.FileSystem/src/System/IO/FileSystem.Win32.cs
src/libraries/System.IO.FileSystem/tests/File/EncryptDecrypt.cs