[DllImport("kernel32.dll")]
static extern bool VerifyVersionInfo([In] ref OSVERSIONINFOEX lpVersionInfo,
uint dwTypeMask, ulong dwlConditionMask);
[StructLayout(LayoutKind.Sequential)]
private struct OSVERSIONINFOEX
{
public uint dwOSVersionInfoSize;
public uint dwMajorVersion;
public uint dwMinorVersion;
public uint dwBuildNumber;
public uint dwPlatformId;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)] public string szCSDVersion;
public UInt16 wServicePackMajor;
public UInt16 wServicePackMinor;
public UInt16 wSuiteMask;
public byte wProductType;
public byte wReserved;
}
None.
None.
Please add some!
Please add some!
You may be able to get sufficient info from the System.Environment.OSVersion function.