SLUninstallProofOfPurchase function (slpublic.h)
Unregisters the product key information.
Syntax
HRESULT SLUninstallProofOfPurchase(
[in] HSLC hSLC,
[in] const SLID *pPKeyId
);
Parameters
[in] hSLC
Type: HSLC
The handle to the current SLC context.
[in] pPKeyId
Type: const SLID*
A pointer to the identifier of the registered product key.
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. |
|
Access denied (API requires admin privileges). |
|
The action requires administrator privilege. |
|
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 |