SLGetInstalledProductKeyIds function (slpublic.h)

This function returns a list of product key IDs associated
with the specified Product SKU ID.

Syntax

HRESULT SLGetInstalledProductKeyIds(
  [in]  HSLC       hSLC,
  [in]  const SLID *pProductSkuId,
  [out] UINT       *pnProductKeyIds,
  [out] SLID       **ppProductKeyIds
);

Parameters

[in] hSLC

Type: HSLC

The handle to the current SLC session.

[in] pProductSkuId

Type: const SLID*

A pointer to the product SKU ID.

[out] pnProductKeyIds

Type: UINT*

A pointer to the number of product Key IDs returned.

[out] ppProductKeyIds

Type: SLID**

A pointer to an array of the product Key IDs.

Return value

Type: HRESULT WINAPI

If this function succeeds, it return S_OK. Otherwise, it returns an HRESULT error code.

Return code/value Description
SL_E_VALUE_NOT_FOUND
0xC004F012
The value for the input key was not found.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header slpublic.h
Library Slc.lib
DLL Slc.dll