If you look into the registry in the key HKLM\System\CurrentControlSet\ProductOptions you will find several licensing related Values.

The ProductType and ProductSuite keys contain the OS Suite and Edition, but the ProductPolicy key is much more interesting. So let’s have a closer look at it, open RegEdit and DoubleClick the key, you will something like the screenshot below, a Binary Value:


As you can see the license names are there as a Unicode string and later on I will show you how we can read the values. But because I didn’t want to extract all the names manually I decided to see if I could reverse the used structure because it didn’t look very complicated. Using a Hex Editor I could determine the important part of the structure.

It starts with a header:

then an array of values follows:

The SlDataType is a word value that corresponds to the values of the SLDATATYPE enum:

And we end with an End Marker (of size cbEndMarker).

Then I wrote some code to parse the structure:

The procedure that reads the actual value is CheckValue, it uses the SLGetWindowsInformation function:

The results are very interesting, I didn’t know there were so many licensable features in Windows!

You can check your results with the demo project (source included).
License Demo (1321)

Here are the results from my Windows 7 Laptop: