SLUninstallSAMLicense function
[SLUninstallSAMLicense is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. ]
Uninstalls a Software Asset Management (SAM) license for the specified application.
HRESULT WINAPI SLUninstallSAMLicense(
_In_ const SLID *pApplicationId
);
- pApplicationId [in]
A pointer to an SLID that specifies the application for which to uninstall a SAM license.
If the method succeeds, it returns S_OK.
If the method fails, it returns an error code. For a list of common error codes, see Common HRESULT Values.
This function can return the following values defined in Slerror.h.
Return code/value | Description |
---|---|
SL_E_LICENSE_FILE_NOT_INSTALLED 0xC004F011 | The software license file for the specified application does not exist. |
SL_E_LUA_ACCESSDENIED 0xC004F025 | The caller does not have administrator privileges. |
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |
Header |
Slpublic.h |
Library |
Slc.lib |
DLL |
Slc.dll |