Hi guys!

I am writing a CSIT (Complete System Information Tool) as you may know from other threads I have made recently. I am trying to read the Windows serial key but unfortunately without much success.

I have found an example piece of code here (see the GetXPCDKey function) but it does not seem to work in Windows Vista or Windows 7 but works fine in Windows XP.

Does anyone know of an example code like the above that will work with Windows & and Vista?

This would be a nice addition to the tool if anyone has any ideas.

Cheers.