/** Process handle @seeosl_loginUser @seeosl_freeSecurityHandle @seeosl_executeProcess
*/ typedefvoid* oslSecurity;
/** Create a security handle for the current user. @returnasecurityhandleorNULLonfailure. @seeosl_freeSecurityHandle @seeosl_executeProcess @seeosl_executeApplication
*/
SAL_DLLPUBLIC oslSecurity SAL_CALL osl_getCurrentSecurity(void);
/** Query if the user who is denotes by this security has administrator rights. @param[in]Securitythesecurityhandleforthuser. @returnTrue,iftheuserhasadministratorrights,otherwisefalse.
*/
SAL_DLLPUBLIC sal_Bool SAL_CALL osl_isAdministrator(
oslSecurity Security);
/** Free the security handle, created by osl_loginUser or osl_getCurrentSecurity. @param[in]Securitythesecurityhandle. @seeosl_loginUser
*/
SAL_DLLPUBLIC void SAL_CALL osl_freeSecurityHandle(
oslSecurity Security);
/** Get the login ident for the user of this security handle. @param[in]Securitythesecurityhandle. @param[out]strIdentthestringthatreceivestheidentonsuccess. @returnTrue,ifthesecurityhandleisvalid,otherwiseFalse.
*/
SAL_DLLPUBLIC sal_Bool SAL_CALL osl_getUserIdent(
oslSecurity Security, rtl_uString **strIdent);
/** Get the login name for the user of this security handle. @param[in]Securitythesecurityhandle. @param[out]strNamethestringthatreceivestheusernameonsuccess. @returnTrue,ifthesecurityhandleisvalid,otherwiseFalse.
*/
SAL_DLLPUBLIC sal_Bool SAL_CALL osl_getUserName(
oslSecurity Security, rtl_uString **strName);
/** Get the login name for the user of this security handle, excludingthedomainnameonWindows. @param[in]Securitythesecurityhandle. @param[out]strNamethestringthatreceivestheusernameonsuccess. @returnTrue,ifthesecurityhandleisvalid,otherwiseFalse. @sinceLibreOffice5.2
*/
SAL_DLLPUBLIC sal_Bool SAL_CALL osl_getShortUserName(
oslSecurity Security, rtl_uString **strName);
/** Get the home directory of the user of this security handle. @param[in]Securitythesecurityhandle. @param[out]strDirectorythestringthatreceivesthedirectorypathonsuccess. @returnTrue,ifthesecurityhandleisvalid,otherwiseFalse.
*/
SAL_DLLPUBLIC sal_Bool SAL_CALL osl_getHomeDir(
oslSecurity Security, rtl_uString **strDirectory);
/** Get the directory for configuration data of the user of this security handle. @param[in]Securitythesecurityhandle. @param[out]strDirectorythestringthatreceivesthedirectorypathonsuccess. @returnTrue,ifthesecurityhandleisvalid,otherwiseFalse.
*/
SAL_DLLPUBLIC sal_Bool SAL_CALL osl_getConfigDir(
oslSecurity Security, rtl_uString **strDirectory);
/** Load Profile of the User ImplementedjustforWindows @param[in]SecuritypreviouslyfetchSecurityoftheUser @returnTrueiftheProfilecouldsuccessfullyloaded,Falseotherwise.
*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.