简体   繁体   中英

How to get Partial Product Key of MS Office in CPP

I have tried this..

open cmd
using command
cscript "C:\\Program Files \\Microsoft office\\Office14\\ospp.vbs" \\dstatus

Giving Partial Product Key EX(XYZA)

There are lots of tool available like: KeyFinderInstaller,isunshare-product-key-finder

I am looking C++ API.

I have also Tried

  1. MsiGetProductProperty
  2. MsiGetComponentPath
  3. MsiGetProductCode

There is no API to get Partial Product Key.

Thank everybody,

Yes!. We can Get Partial Product key by class "SoftwareLicensingProduct" This class has a member PartialProductKey.

https://msdn.microsoft.com/en-us/library/cc534596(v=vs.85).aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM