diff options
author | Egor Chesakov <Egor.Chesakov@microsoft.com> | 2019-01-03 12:13:13 -0800 |
---|---|---|
committer | Egor Chesakov <Egor.Chesakov@microsoft.com> | 2019-01-03 17:44:44 -0800 |
commit | 90a295c24f7f8764ea56670955340e2ddc764b00 (patch) | |
tree | ae3bdba6a7f40021703f9eec01678c34d8658c75 /tests | |
parent | 0a294abdcff0281da1ad8eeb450b4e812030b269 (diff) | |
download | coreclr-90a295c24f7f8764ea56670955340e2ddc764b00.tar.gz coreclr-90a295c24f7f8764ea56670955340e2ddc764b00.tar.bz2 coreclr-90a295c24f7f8764ea56670955340e2ddc764b00.zip |
Use Kernel32 instead of api-ms-win-core-* in DllImports in SafeFileHandle.cs
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/Interop/PInvoke/SafeHandles/SafeFileHandle.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/src/Interop/PInvoke/SafeHandles/SafeFileHandle.cs b/tests/src/Interop/PInvoke/SafeHandles/SafeFileHandle.cs index b88696f498..efbba7de47 100644 --- a/tests/src/Interop/PInvoke/SafeHandles/SafeFileHandle.cs +++ b/tests/src/Interop/PInvoke/SafeHandles/SafeFileHandle.cs @@ -21,7 +21,7 @@ namespace SafeHandlesTests{ } //each SafeHandle subclass will expose a static method for instance creation - [DllImport("api-ms-win-core-file-l1-2-1", EntryPoint = "CreateFileW", SetLastError = true)] + [DllImport("Kernel32", EntryPoint = "CreateFileW", SetLastError = true)] public static extern ChildSFH_NoCloseHandle CreateChildSafeFileHandle(String lpFileName, DesiredAccess dwDesiredAccess, ShareMode dwShareMode, IntPtr lpSecurityAttributes, CreationDisposition dwCreationDisposition, @@ -49,7 +49,7 @@ namespace SafeHandlesTests{ public class ChildSafeFileHandle : SafeFileHandle { //each SafeHandle subclass will expose a static method for instance creation - [DllImport("api-ms-win-core-file-l1-2-1", EntryPoint = "CreateFileW", SetLastError = true)] + [DllImport("Kernel32", EntryPoint = "CreateFileW", SetLastError = true)] public static extern ChildSafeFileHandle CreateChildSafeFileHandle(String lpFileName, DesiredAccess dwDesiredAccess, ShareMode dwShareMode, IntPtr lpSecurityAttributes, CreationDisposition dwCreationDisposition, @@ -77,7 +77,7 @@ namespace SafeHandlesTests{ } //each SafeHandle subclass will expose a static method for instance creation - [DllImport("api-ms-win-core-file-l1-2-1", EntryPoint = "CreateFileW", SetLastError = true)] + [DllImport("Kernel32", EntryPoint = "CreateFileW", SetLastError = true)] public static extern SFH_NoCloseHandle CreateFile(String lpFileName, DesiredAccess dwDesiredAccess, ShareMode dwShareMode, IntPtr lpSecurityAttributes, CreationDisposition dwCreationDisposition, @@ -126,12 +126,12 @@ namespace SafeHandlesTests{ } [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)] - [DllImport("api-ms-win-core-handle-l1-1-0", SetLastError = true)] + [DllImport("Kernel32", SetLastError = true)] private static extern bool CloseHandle(IntPtr handle); //each SafeHandle subclass will expose a static method for instance creation - [DllImport("api-ms-win-core-file-l1-2-1", EntryPoint = "CreateFileW", SetLastError = true)] + [DllImport("Kernel32", EntryPoint = "CreateFileW", SetLastError = true)] public static extern SafeFileHandle CreateFile(String lpFileName, DesiredAccess dwDesiredAccess, ShareMode dwShareMode, IntPtr lpSecurityAttributes, CreationDisposition dwCreationDisposition, |