verifyversioninfo (kernel32)
Last changed: -128.104.66.7

.
Summary

C# Signature:

[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;
}

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

You may be able to get sufficient info from the System.Environment.OSVersion function.

Documentation