How to convert Windows ProductType to name?

Viewed 62

The GetProductInfo() function returns pdwReturnedProductType as a numeric type argument.

Is there a function to convert this number to a name?

Or, can you suggest to me a really full list of such product name constants? The MSDN article is missing some values, like 0x59 - "Industry Pro (Embedded)".

1 Answers

Look at the OSEdition Enumeration defines on MSDN, it has the numeric values you are looking for, including 0x59:

This section provides the product enumerations for the OSEdition element.

#define PRODUCT_EMBEDDED_INDUSTRY 0x00000059

AFAIK, there is no function to convert these numeric values into human readable names.

Related