Fix allocations in SystemEvents (dotnet/corefx#39312)
authorJeremy Kuhne <jkuhne@microsoft.com>
Fri, 12 Jul 2019 20:15:46 +0000 (13:15 -0700)
committerGitHub <noreply@github.com>
Fri, 12 Jul 2019 20:15:46 +0000 (13:15 -0700)
commitd6f4f4613fa3716a9fbddd39be73dfd2d979cce9
tree642afc43f4c155593ec425ba9fb4abb9ee5b4671
parentf6ba5eabd41b9ae59fda8894914d10dd62cafd61
Fix allocations in SystemEvents (dotnet/corefx#39312)

* Fix allocations in SystemEvents

Remove unnecessary allocations by correcting interop signatures and removing app domain specific logic.

* Address feedback.

* Remove IntPtr, fix comments

* Pass by ref

* Address comment/naming feedback

Commit migrated from https://github.com/dotnet/corefx/commit/4f2fb593a088c0b87b9cb60aef0267952d903491
src/libraries/Common/src/Interop/Windows/User32/Interop.CreateWindowEx.cs
src/libraries/Common/src/Interop/Windows/User32/Interop.GetClassInfo.cs
src/libraries/Common/src/Interop/Windows/User32/Interop.RegisterClass.cs
src/libraries/Common/src/Interop/Windows/User32/Interop.WNDCLASS.cs
src/libraries/Microsoft.Win32.SystemEvents/src/Microsoft/Win32/SystemEvents.cs