Switch over to shared Interop.Globalization.cs on Windows (dotnet/coreclr#3528)
authorJan Kotas <jkotas@microsoft.com>
Fri, 5 May 2017 15:03:16 +0000 (08:03 -0700)
committerJan Kotas <jkotas@microsoft.com>
Fri, 5 May 2017 18:44:01 +0000 (11:44 -0700)
commitd3ab94dad75cced9f9a285e2fe722fae00460d92
tree3f0b4eccd532b3d51e8db5c987abeea64b1b7073
parent90f3a625ba9ae10d03d345683b1a3dd377ce87e1
Switch over to shared Interop.Globalization.cs on Windows (dotnet/coreclr#3528)

- Match CoreCLR refactoring done for invariant culture
- Use actual unsafe types in the interop signatures instead of opaque IntPtr
- Use Unsafe.As to get a pointer to stack allocated structure instead of allocating GCHandles
- Remove use of NativeCallable for enumeration to make the same code work on both CoreRT and CoreCLR. (I have kelp the NativeCallable annotations commented out so that we can switch back to them once C# gets the intrinsics to make it possible.)

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/8026a02a3abb3f83f666e5eac8a6ddce20c70e77
src/coreclr/src/mscorlib/shared/Interop/Windows/Kernel32/Interop.Globalization.cs
src/coreclr/src/mscorlib/shared/System.Private.CoreLib.Shared.projitems