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.
Sets the current
product key to the previously installed product key.
Syntax
HRESULT SLSetCurrentProductKey(
[in] HSLC hSLC,
[in] const SLID *pProductSkuId,
[in] const SLID *pProductKeyId
);
Parameters
[in] hSLC
Type: HSLC
The handle to the current SLC context.
[in] pProductSkuId
Type: const SLID*
A pointer to the product SKU ID.
[in] pProductKeyId
Type: const SLID*
A pointer to the product key ID.
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 product SKU is not found. |
|
The product key is not available. |
|
The requested operation is not allowed. |
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 |