Contents - Index


4.2.3.31 Remove Licence (Extended)

HRESULT WINAPI SLS_RemoveEx(
                                                       LPCSTR pszProductID,
                                                       DWORD dwOptions,
                                                       LPCSTR pszRemoveReference,
                                                       LPCSTR pszRemovePassword)

Parameters

pszProductID

Points to a string that uniquely identifies the application's Product ID.

dwRemoveOption

Specify one or a combination of the following options:

#define SLS_REMOVE_FILES 0x0001 //remove licence files
#define SLS_REMOVE_REGISTRY 0x0002 //remove licence registry
#define SLS_REMOVE_HISTORY 0x0004 //remove licence history
#define SLS_REMOVE_ALL 0x0007 //remove all of above

pszRemoveReference

Specify the reference code for the removal. The Remove Reference code is obtained by calling SLS_GenerateRemoveReference in SlsLocalEx.dll.

pszRemovePassword

Specify the password for the removal. The Remove Password is obtained by calling SLS_GenerateRemovePassword in SlsLocalEx.dll.

Return Value

SLS_SUCCESS if the function is successful. Otherwise an error status code is returned indicating the cause of the error.

Remarks

SLS_RemoveEx is an extended version of SLS_Remove. It works in the same way as the "Remove" function in the SlsAdmin application i.e. the user must generate a verifiable reference code prior to removal.