The key is obtained from the Windows Registry. But it uses the exact same principle to attain the Office Key. The code below displays the Product Key for the Windows OS. Now, is there a different starting index for the Office 2013 key or is it overwritten by Lync 2013's key/Project 2013's key? Or am I going about this the completely wrong way? Registry = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry64).OpenSubKey("SOFTWARE\Wow6432Node\Microsoft\Office\15.0\Registration\", False)ĭigitalProductId = Tr圜ast(registry.GetValue("DigitalProductId"), Byte())ĭim keyEndIndex As Integer = keyStartIndex 15 My VB.net code: This code is based on that from the net, not taking claim to making this Dim digitalProductId As IList(Of Byte) = Nothing $RegKey = 'HKLM64\SOFTWARE\Microsoft\Office\15.0\Registration' If '圆4' Then SetError(1, 0, "Product not found") $bKey = RegRead($RegKey
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |