Lines Matching refs:Security

85 static sal_Bool SAL_CALL getUserNameImpl(oslSecurity Security, rtl_uString **strName, sal_Bool bInc…
245 sal_Bool SAL_CALL osl_isAdministrator(oslSecurity Security) in osl_isAdministrator() argument
247 if (Security != NULL) in osl_isAdministrator()
267 if ( ((oslSecurityImpl*)Security)->m_hToken ) in osl_isAdministrator()
269 …if ( !DuplicateToken (((oslSecurityImpl*)Security)->m_hToken, SecurityImpersonation, &hImpersonati… in osl_isAdministrator()
305 void SAL_CALL osl_freeSecurityHandle(oslSecurity Security) in osl_freeSecurityHandle() argument
307 if (Security) in osl_freeSecurityHandle()
309 oslSecurityImpl *pSecImpl = (oslSecurityImpl*)Security; in osl_freeSecurityHandle()
330 sal_Bool SAL_CALL osl_getUserIdent(oslSecurity Security, rtl_uString **strIdent) in osl_getUserIdent() argument
332 if (Security != NULL) in osl_getUserIdent()
334 oslSecurityImpl *pSecImpl = (oslSecurityImpl*)Security; in osl_getUserIdent()
450 sal_Bool SAL_CALL osl_getUserName(oslSecurity Security, rtl_uString **strName) in osl_getUserName() argument
452 return getUserNameImpl(Security, strName, sal_True); in osl_getUserName()
456 sal_Bool SAL_CALL osl_getHomeDir(oslSecurity Security, rtl_uString **pustrDirectory) in osl_getHomeDir() argument
461 if (Security != NULL) in osl_getHomeDir()
463 oslSecurityImpl *pSecImpl = (oslSecurityImpl*)Security; in osl_getHomeDir()
515 sal_Bool SAL_CALL osl_getConfigDir(oslSecurity Security, rtl_uString **pustrDirectory) in osl_getConfigDir() argument
519 if (Security != NULL) in osl_getConfigDir()
521 oslSecurityImpl *pSecImpl = (oslSecurityImpl*)Security; in osl_getConfigDir()
564 sal_Bool SAL_CALL osl_loadUserProfile(oslSecurity Security) in osl_loadUserProfile() argument
582 HANDLE hAccessToken = ((oslSecurityImpl*)Security)->m_hToken; in osl_loadUserProfile()
611 getUserNameImpl(Security, &buffer, sal_False); in osl_loadUserProfile()
633 if (hAccessToken && (hAccessToken != ((oslSecurityImpl*)Security)->m_hToken)) in osl_loadUserProfile()
641 void SAL_CALL osl_unloadUserProfile(oslSecurity Security) in osl_unloadUserProfile() argument
643 if ( ((oslSecurityImpl*)Security)->m_hProfile != NULL ) in osl_unloadUserProfile()
649 HANDLE hAccessToken = ((oslSecurityImpl*)Security)->m_hToken; in osl_unloadUserProfile()
675 bOk = fUnloadUserProfile(hAccessToken, ((oslSecurityImpl*)Security)->m_hProfile); in osl_unloadUserProfile()
682 ((oslSecurityImpl*)Security)->m_hProfile; in osl_unloadUserProfile()
684 if (hAccessToken && (hAccessToken != ((oslSecurityImpl*)Security)->m_hToken)) in osl_unloadUserProfile()
890 static sal_Bool SAL_CALL getUserNameImpl(oslSecurity Security, rtl_uString **strName, sal_Bool bIn… in getUserNameImpl() argument
892 if (Security != NULL) in getUserNameImpl()
894 oslSecurityImpl *pSecImpl = (oslSecurityImpl*)Security; in getUserNameImpl()