get product key error code via httprequest

Discussion in 'Application Software' started by laomms, Jun 26, 2019.

  1. laomms

    laomms MDL Novice

    Jul 6, 2018
    14
    16
    0
    #1 laomms, Jun 26, 2019
    Last edited: Jun 5, 2021

    Attached Files:

  2. laomms

    laomms MDL Novice

    Jul 6, 2018
    14
    16
    0
  3. laomms

    laomms MDL Novice

    Jul 6, 2018
    14
    16
    0
  4. laomms

    laomms MDL Novice

    Jul 6, 2018
    14
    16
    0
    #4 laomms, Jun 26, 2019
    Last edited: May 5, 2021
    (OP)
    <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)
     
  5. laomms

    laomms MDL Novice

    Jul 6, 2018
    14
    16
    0
    #5 laomms, Jun 30, 2019
    Last edited: May 31, 2021
    (OP)
    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.
     
  6. Carlos Detweiller

    Carlos Detweiller MDL Spinning Tortoise

    Dec 21, 2012
    4,459
    4,454
    150
    Could become a nice tool for us, eventually.
     
  7. Hoàng Phong

    Hoàng Phong MDL Novice

    Jul 24, 2020
    2
    0
    0
    #7 Hoàng Phong, Aug 8, 2020
    Last edited: Aug 10, 2020
    how to use calls to those functions. @laomms .
    Can you give me the full cs file? Thank you
     
  8. laomms

    laomms MDL Novice

    Jul 6, 2018
    14
    16
    0
    #8 laomms, May 26, 2021
    Last edited: Jun 4, 2021
    (OP)
    Is it possible check retail product key validity status no need to install? yes, it is possible.