Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 |
|---|---|
|
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 |