Update SPCL to use GeneratedDllImport where possible. (#61640)
authorAaron Robinson <arobins@microsoft.com>
Wed, 17 Nov 2021 01:35:01 +0000 (18:35 -0700)
committerGitHub <noreply@github.com>
Wed, 17 Nov 2021 01:35:01 +0000 (18:35 -0700)
commita1b391bde7ef9e58c19f217ed367c8e8fea7cac3
tree4b6bec5949bb263cfdd8ceecd6090983ec4e7f1a
parent628a08417ee446e65a93f08eeb7b00e4b05927e0
Update SPCL to use GeneratedDllImport where possible. (#61640)

* Update SPCL to use GeneratedDllImport where possible.
125 files changed:
src/libraries/Common/src/Interop/Interop.Calendar.cs
src/libraries/Common/src/Interop/Interop.Casing.cs
src/libraries/Common/src/Interop/Interop.Collation.cs
src/libraries/Common/src/Interop/Interop.HostPolicy.cs
src/libraries/Common/src/Interop/Interop.ICU.cs
src/libraries/Common/src/Interop/Interop.Idna.cs
src/libraries/Common/src/Interop/Interop.Locale.cs
src/libraries/Common/src/Interop/Interop.Normalization.cs
src/libraries/Common/src/Interop/Interop.TimeZoneInfo.cs
src/libraries/Common/src/Interop/OSX/Interop.libc.cs
src/libraries/Common/src/Interop/OSX/Interop.libobjc.cs
src/libraries/Common/src/Interop/OSX/System.Native/Interop.AutoreleasePool.cs
src/libraries/Common/src/Interop/SunOS/procfs/Interop.ProcFsStat.TryReadProcessStatusInfo.cs
src/libraries/Common/src/Interop/Unix/System.Native/Interop.ChDir.cs
src/libraries/Common/src/Interop/Unix/System.Native/Interop.ErrNo.cs
src/libraries/Common/src/Interop/Unix/System.Native/Interop.FAllocate.cs
src/libraries/Common/src/Interop/Unix/System.Native/Interop.FSync.cs
src/libraries/Common/src/Interop/Unix/System.Native/Interop.GetCpuUtilization.cs
src/libraries/Common/src/Interop/Unix/System.Native/Interop.GetCwd.cs
src/libraries/Common/src/Interop/Unix/System.Native/Interop.GetEnv.cs
src/libraries/Common/src/Interop/Unix/System.Native/Interop.GetEnviron.cs
src/libraries/Common/src/Interop/Unix/System.Native/Interop.GetPid.cs
src/libraries/Common/src/Interop/Unix/System.Native/Interop.GetProcessPath.cs
src/libraries/Common/src/Interop/Unix/System.Native/Interop.GetRandomBytes.cs
src/libraries/Common/src/Interop/Unix/System.Native/Interop.GetSystemTimeAsTicks.cs
src/libraries/Common/src/Interop/Unix/System.Native/Interop.GetTimestamp.cs
src/libraries/Common/src/Interop/Unix/System.Native/Interop.GetUnixName.cs
src/libraries/Common/src/Interop/Unix/System.Native/Interop.GetUnixRelease.cs
src/libraries/Common/src/Interop/Unix/System.Native/Interop.LChflags.cs
src/libraries/Common/src/Interop/Unix/System.Native/Interop.LockFileRegion.cs
src/libraries/Common/src/Interop/Unix/System.Native/Interop.Log.cs
src/libraries/Common/src/Interop/Unix/System.Native/Interop.LowLevelMonitor.cs
src/libraries/Common/src/Interop/Unix/System.Native/Interop.MemAlloc.cs
src/libraries/Common/src/Interop/Unix/System.Native/Interop.MksTemps.cs
src/libraries/Common/src/Interop/Unix/System.Native/Interop.PRead.cs
src/libraries/Common/src/Interop/Unix/System.Native/Interop.PReadV.cs
src/libraries/Common/src/Interop/Unix/System.Native/Interop.PWrite.cs
src/libraries/Common/src/Interop/Unix/System.Native/Interop.PWriteV.cs
src/libraries/Common/src/Interop/Unix/System.Native/Interop.PosixFAdvise.cs
src/libraries/Common/src/Interop/Unix/System.Native/Interop.PosixSignal.cs
src/libraries/Common/src/Interop/Unix/System.Native/Interop.ReadDir.cs
src/libraries/Common/src/Interop/Unix/System.Native/Interop.SymLink.cs
src/libraries/Common/src/Interop/Unix/System.Native/Interop.SysLog.cs
src/libraries/Common/src/Interop/Unix/System.Native/Interop.UnixFileSystemTypes.cs
src/libraries/Common/src/Interop/Windows/Advapi32/Interop.EventActivityIdControl.cs
src/libraries/Common/src/Interop/Windows/Advapi32/Interop.EventRegister.cs
src/libraries/Common/src/Interop/Windows/Advapi32/Interop.EventSetInformation.cs
src/libraries/Common/src/Interop/Windows/Advapi32/Interop.EventTraceGuidsEx.cs
src/libraries/Common/src/Interop/Windows/Advapi32/Interop.EventUnregister.cs
src/libraries/Common/src/Interop/Windows/Advapi32/Interop.EventWriteString.cs
src/libraries/Common/src/Interop/Windows/Advapi32/Interop.EventWriteTransfer.cs
src/libraries/Common/src/Interop/Windows/Advapi32/Interop.LookupAccountNameW.cs
src/libraries/Common/src/Interop/Windows/BCrypt/Interop.BCryptGenRandom.cs
src/libraries/Common/src/Interop/Windows/Crypt32/Interop.CryptProtectMemory.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.CompletionPort.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.ConditionVariable.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.CreateSymbolicLink.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.CriticalSection.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.DeviceIoControl.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.EventWaitHandle.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.ExpandEnvironmentStrings.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.FileScatterGather.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.FileTimeToSystemTime.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.FindFirstFileEx.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.FindNextFile.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.FreeEnvironmentStrings.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.GetCPInfo.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.GetCurrentDirectory.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.GetEnvironmentStrings.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.GetEnvironmentVariable.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.GetFileInformationByHandleEx.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.GetFinalPathNameByHandle.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.GetLastError.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.GetModuleFileName.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.GetOverlappedResult.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.GetProcessMemoryInfo.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.GetProcessTimes_IntPtr.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.GetSystemDirectoryW.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.GetSystemTime.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.GetSystemTimes.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.GetTempFileNameW.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.GetTempPathW.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.GlobalMemoryStatusEx.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.Globalization.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.LocalAlloc.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.LockFile.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.Mutex.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.OutputDebugString.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.QueryPerformanceCounter.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.QueryPerformanceFrequency.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.QueryUnbiasedInterruptTime.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.ResolveLocaleName.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.Semaphore.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.SetCurrentDirectory.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.SetEnvironmentVariable.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.SetFilePointerEx.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.SetLastError.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.SystemTimeToFileTime.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.TimeZone.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.TzSpecificLocalTimeToSystemTime.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.VerSetConditionMask.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.VerifyVersionExW.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.VirtualAlloc_Ptr.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.VirtualFree.cs
src/libraries/Common/src/Interop/Windows/Kernel32/Interop.VirtualQuery_Ptr.cs
src/libraries/Common/src/Interop/Windows/Normaliz/Interop.Idna.cs
src/libraries/Common/src/Interop/Windows/Normaliz/Interop.Normalization.cs
src/libraries/Common/src/Interop/Windows/NtDll/Interop.NtCreateFile.cs
src/libraries/Common/src/Interop/Windows/NtDll/Interop.NtQueryDirectoryFile.cs
src/libraries/Common/src/Interop/Windows/NtDll/Interop.NtQueryInformationFile.cs
src/libraries/Common/src/Interop/Windows/NtDll/Interop.RtlGetVersion.cs
src/libraries/Common/src/Interop/Windows/NtDll/Interop.RtlNtStatusToDosError.cs
src/libraries/Common/src/Interop/Windows/Ole32/Interop.CLSIDFromProgID.cs
src/libraries/Common/src/Interop/Windows/Ole32/Interop.CoCreateGuid.cs
src/libraries/Common/src/Interop/Windows/Ole32/Interop.CoGetStandardMarshal.cs
src/libraries/Common/src/Interop/Windows/Ole32/Interop.CoTaskMemAlloc.cs
src/libraries/Common/src/Interop/Windows/OleAut32/Interop.SysAllocStringByteLen.cs
src/libraries/Common/src/Interop/Windows/OleAut32/Interop.SysFreeString.cs
src/libraries/Common/src/Interop/Windows/OleAut32/Interop.VariantClear.cs
src/libraries/Common/src/Interop/Windows/Secur32/Interop.GetUserNameExW.cs
src/libraries/Common/src/Interop/Windows/Shell32/Interop.SHGetKnownFolderPath.cs
src/libraries/Common/src/Interop/Windows/Ucrtbase/Interop.MemAlloc.cs
src/libraries/Common/src/Interop/Windows/User32/Interop.LoadString.cs
src/libraries/System.Runtime.Caching/src/System.Runtime.Caching.csproj
src/libraries/System.Threading.AccessControl/src/System.Threading.AccessControl.csproj