Lines Matching refs:pSecImpl

93     oslSecurityImpl* pSecImpl = malloc(sizeof(oslSecurityImpl));  in osl_getCurrentSecurity()  local
95 pSecImpl->m_pNetResource = NULL; in osl_getCurrentSecurity()
96 pSecImpl->m_User[0] = '\0'; in osl_getCurrentSecurity()
97 pSecImpl->m_hToken = NULL; in osl_getCurrentSecurity()
98 pSecImpl->m_hProfile = NULL; in osl_getCurrentSecurity()
100 return ((oslSecurity)pSecImpl); in osl_getCurrentSecurity()
137 oslSecurityImpl* pSecImpl = malloc(sizeof(oslSecurityImpl)); in osl_loginUser() local
139 pSecImpl->m_pNetResource = NULL; in osl_loginUser()
140 pSecImpl->m_hToken = hUserToken; in osl_loginUser()
141 pSecImpl->m_hProfile = NULL; in osl_loginUser()
142 wcscpy(pSecImpl->m_User, strUser); in osl_loginUser()
144 *pSecurity = (oslSecurity)pSecImpl; in osl_loginUser()
195 oslSecurityImpl* pSecImpl = malloc(sizeof(oslSecurityImpl)); in osl_loginUserOnFileServer() local
197 pSecImpl->m_pNetResource = malloc(sizeof(NETRESOURCE)); in osl_loginUserOnFileServer()
198 *pSecImpl->m_pNetResource = netResource; in osl_loginUserOnFileServer()
200 pSecImpl->m_hToken = NULL; in osl_loginUserOnFileServer()
201 pSecImpl->m_hProfile = NULL; in osl_loginUserOnFileServer()
202 wcscpy(pSecImpl->m_User, rtl_uString_getStr(strUserName)); in osl_loginUserOnFileServer()
204 *pSecurity = (oslSecurity)pSecImpl; in osl_loginUserOnFileServer()
309 oslSecurityImpl *pSecImpl = (oslSecurityImpl*)Security; in osl_freeSecurityHandle() local
311 if (pSecImpl->m_pNetResource != NULL) in osl_freeSecurityHandle()
313 WNetCancelConnection2W(pSecImpl->m_pNetResource->lpRemoteName, 0, sal_True); in osl_freeSecurityHandle()
315 free(pSecImpl->m_pNetResource->lpRemoteName); in osl_freeSecurityHandle()
316 free(pSecImpl->m_pNetResource); in osl_freeSecurityHandle()
319 if (pSecImpl->m_hToken) in osl_freeSecurityHandle()
320 CloseHandle(pSecImpl->m_hToken); in osl_freeSecurityHandle()
322 if ( pSecImpl->m_hProfile ) in osl_freeSecurityHandle()
323 CloseHandle(pSecImpl->m_hProfile); in osl_freeSecurityHandle()
325 free (pSecImpl); in osl_freeSecurityHandle()
334 oslSecurityImpl *pSecImpl = (oslSecurityImpl*)Security; in osl_getUserIdent() local
336 HANDLE hAccessToken = pSecImpl->m_hToken; in osl_getUserIdent()
361 if (pSecImpl->m_hToken == NULL) in osl_getUserIdent()
463 oslSecurityImpl *pSecImpl = (oslSecurityImpl*)Security; in osl_getHomeDir() local
465 if (pSecImpl->m_pNetResource != NULL) in osl_getHomeDir()
467 rtl_uString_newFromStr( &ustrSysDir, pSecImpl->m_pNetResource->lpRemoteName); in osl_getHomeDir()
474 if (pSecImpl->m_hToken) in osl_getHomeDir()
479 while (!GetTokenInformation(pSecImpl->m_hToken, TokenUser, in osl_getHomeDir()
521 oslSecurityImpl *pSecImpl = (oslSecurityImpl*)Security; in osl_getConfigDir() local
523 if (pSecImpl->m_pNetResource != NULL) in osl_getConfigDir()
527 rtl_uString_newFromStr( &ustrSysDir, pSecImpl->m_pNetResource->lpRemoteName); in osl_getConfigDir()
535 if (pSecImpl->m_hToken) in osl_getConfigDir()
894 oslSecurityImpl *pSecImpl = (oslSecurityImpl*)Security; in getUserNameImpl() local
896 HANDLE hAccessToken = pSecImpl->m_hToken; in getUserNameImpl()
919 if (pSecImpl->m_hToken == NULL) in getUserNameImpl()
970 if (wcslen(pSecImpl->m_User) > 0) in getUserNameImpl()
972 rtl_uString_newFromStr( strName, pSecImpl->m_pNetResource->lpRemoteName); in getUserNameImpl()