Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SLGetInstalledProductKeyIds function

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

Syntax


HRESULT WINAPI SLGetInstalledProductKeyIds(
  _In_   HSLC hSLC,
  _In_   const SLID *pProductSkuId,
  _Out_  UINT *pnProductKeyIds,
  _Out_  SLID **ppProductKeyIds
);

Parameters

hSLC [in]

Type: HSLC

The handle to the current SLC session.

pProductSkuId [in]

Type: const SLID*

A pointer to the product SKU ID.

pnProductKeyIds [out]

Type: UINT*

A pointer to the number of product Key IDs returned.

ppProductKeyIds [out]

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/valueDescription
SL_E_VALUE_NOT_FOUND
0xC004F012

The value for the input key was not found.

 

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Slpublic.h

Library

Slc.lib

DLL

Slc.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.