DotNet 4.8.1 build of DotNetBar
This commit is contained in:
27
PROMS/DotNetBar Source Code/TreeGX/WinApi.cs
Normal file
27
PROMS/DotNetBar Source Code/TreeGX/WinApi.cs
Normal file
@@ -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