DotNet 4.8.1 build of DotNetBar
This commit is contained in:
1 parent
33439b63a0
commit
6b0a5d60f4
2609 files changed
+989814
-7
No files matched your search
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace DevComponents.Tree
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines Windows API function access.
|
||||
/// </summary>
|
||||
internal static class WinApi
|
||||
{
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct OSVERSIONINFO
|
||||
{
|
||||
public int dwOSVersionInfoSize;
|
||||
public int dwMajorVersion;
|
||||
public int dwMinorVersion;
|
||||
public int dwBuildNumber;
|
||||
public int dwPlatformId;
|
||||
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)]
|
||||
public string szCSDVersion;
|
||||
}
|
||||
[DllImport("kernel32.Dll")]
|
||||
public static extern short GetVersionEx(ref OSVERSIONINFO o);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user