Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SLUninstallProofOfPurchase function

Unregisters the product key information.

Syntax


HRESULT WINAPI SLUninstallProofOfPurchase(
  _In_       HSLC hSLC,
  _In_ const SLID *pPKeyId
);

Parameters

hSLC [in]

Type: HSLC

The handle to the current SLC context.

pPKeyId [in]

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/valueDescription
E_INVALIDARG
0x80070057

One or more arguments are not valid.

E_ACCESSDENIED
0x80070005

Access denied (API requires admin privileges).

SL_E_LUA_ACCESSDENIED
0xC004F025

The action requires administrator privilege.

SL_E_PKEY_NOT_INSTALLED
0xC004F014

The product key is not available.

 

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:
© 2015 Microsoft