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.
Generates Installation ID (IID). Users can send the IID to CSR to get the Confirmation ID (CID).
Syntax
HRESULT SLGenerateOfflineInstallationIdEx(
[in] HSLC hSLC,
[in, optional] const SLID *pProductSkuId,
[in, optional] const SL_ACTIVATION_INFO_HEADER *pActivationInfo,
[out] PWSTR *ppwszInstallationId
);
Parameters
[in] hSLC
Type: HSLC
The handle to the current SLC context.
[in, optional] pProductSkuId
Type: const SLID*
A pointer the product ID.
[in, optional] pActivationInfo
Type: const SL_ACTIVATION_INFO_HEADER*
A pointer to additional information.
[out] ppwszInstallationId
Type: PWSTR*
The Installation ID string. Once you are finished, call the LocalFree function to
free the memory.
Return value
Type: HRESULT WINAPI
If this function succeeds, it return S_OK. Otherwise, it returns an HRESULT error code.
Return code/value | Description |
---|---|
|
One or more arguments are not valid. |
|
The product key is not available. |
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 |