<DllImport("sppc.dll", EntryPoint:="SLpGetLicenseAcquisitionInfo", ExactSpelling:=False, CharSet:=CharSet.Unicode)> Shared Function SLpGetLicenseAcquisitionInfo(ByVal hSLC As IntPtr, ByVal pwszPKeyAlgorithm As IntPtr, ByVal uBytes As UInteger, ByVal pData As IntPtr, ByRef Info As Integer, ByRef pcbValue As UInteger, ByRef ppbValue As IntPtr) As Integer End Function how to get skuid, it's many ways: 1. decode by pidgenx.dll 2. get from pkeyconfig.xrm-ms 3. get by slpublic api: get pKeyId by ProductKeys, then get pSkuId by pKeyId: SLGetPKeyId(hSLC, pwpkeyconfigAlgorithm, ProductKeys, 0, Nothing, pKeyId) SLGetPKeyInformation(hSLC, pKeyId, "ProductSkuId", peDataType, pcbValue, ppbValue)
by this way, it can bypass digital activated machine, it can also avoid office online key is mistaken for valid after invalidation. for retail product key, no need get errocode by activate product key, just install product key, and get errorcode by post xml string.