GetProductInfo (kernel32)
Last changed: -174.25.166.10

.
Summary
TODO - a short description

C# Signature:

[DllImport("kernel32.dll", SetLastError=false)]
static extern bool GetProductInfo(
     int dwOSMajorVersion,
     int dwOSMinorVersion,
     int dwSpMajorVersion,
     int dwSpMinorVersion,
     out int pdwReturnedProductType

);

VB Signature:

TODO

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

int ProductNum;

GetProductInfo(

System.Environment.OSVersion.Version.Major,
System.Environment.OSVersion.Version.Minor,
0,
0,
out ProductNum);

Console.WriteLine(ProductNum);

Documentation