Contents - Index


4.2.3.35 Set Permissions

HRESULT WINAPI SLS_SetPermissions(
                                                               LPCSTR pszProductID)

Parameters

pszProductID

Return Values

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

Remarks

Sheriff requires write permission to its registry keys and licence files. This API function SLS_SetPermissions helps developers to set the write access permission to all relevant registry keys and files. SLS_SetPermissions must be called in the admin account, but only once for all. Typically, it is called at installation.

Note also SLS_IsAdminAccount, SLS_IsLimitedAccount. These two functions help developers to check whether the current user account is an admin or limited account.