Skip to content

Commit

Permalink
Convert System.Runtime.InteropServices.RuntimeInformation
Browse files Browse the repository at this point in the history
  • Loading branch information
elinor-fung committed May 19, 2021
1 parent 30b04c0 commit 00b9f84
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ internal static partial class Interop
{
internal static partial class Sys
{
[DllImport(Libraries.SystemNative, EntryPoint = "SystemNative_GetUnixVersion", CharSet = CharSet.Ansi, SetLastError = true)]
private static extern int GetUnixVersion(byte[] version, ref int capacity);
[GeneratedDllImport(Libraries.SystemNative, EntryPoint = "SystemNative_GetUnixVersion", CharSet = CharSet.Ansi, SetLastError = true)]
private static partial int GetUnixVersion(byte[] version, ref int capacity);

internal static string GetUnixVersion()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ internal static partial class Interop
{
internal static partial class Kernel32
{
[DllImport(Libraries.Kernel32)]
internal static extern void GetNativeSystemInfo(out SYSTEM_INFO lpSystemInfo);
[GeneratedDllImport(Libraries.Kernel32)]
internal static partial void GetNativeSystemInfo(out SYSTEM_INFO lpSystemInfo);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ internal static partial class Interop
{
internal static partial class Kernel32
{
[DllImport(Libraries.Kernel32)]
internal static extern void GetSystemInfo(out SYSTEM_INFO lpSystemInfo);
[GeneratedDllImport(Libraries.Kernel32)]
internal static partial void GetSystemInfo(out SYSTEM_INFO lpSystemInfo);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
Link="Common\Interop\Windows\Kernel32\Interop.GetSystemInfo.cs" />
</ItemGroup>
<ItemGroup>
<Reference Include="System.Memory" />
<Reference Include="System.Reflection" />
<Reference Include="System.Reflection.Extensions" />
<Reference Include="System.Runtime" />
Expand Down

0 comments on commit 00b9f84

Please sign in to comment.