Searched refs:pTokenUser (Results 1 – 5 of 5) sorted by relevance
/reactos/base/services/rpcss/ |
H A D | setup.c | 59 PTOKEN_USER pTokenUser; in RunningAsSYSTEM() local 74 pTokenUser = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, cbTokenBuffer); in RunningAsSYSTEM() 75 if (!pTokenUser) in RunningAsSYSTEM() 78 if (GetTokenInformation(hToken, TokenUser, pTokenUser, cbTokenBuffer, &cbTokenBuffer)) in RunningAsSYSTEM() 81 bRet = EqualSid(pTokenUser->User.Sid, &SystemSid); in RunningAsSYSTEM() 84 HeapFree(GetProcessHeap(), 0, pTokenUser); in RunningAsSYSTEM()
|
/reactos/base/services/svchost/ |
H A D | security.cxx | 35 PTOKEN_USER pTokenUser; in DwInitializeSdFromThreadToken() local 81 pTokenUser = (PTOKEN_USER)(pSd + 1); in DwInitializeSdFromThreadToken() 82 pTokenGroup = (PTOKEN_PRIMARY_GROUP)((ULONG_PTR)pTokenUser + dwAlignLength); in DwInitializeSdFromThreadToken() 93 pTokenUser, in DwInitializeSdFromThreadToken() 111 if (SetSecurityDescriptorOwner(pSd, pTokenUser->User.Sid, FALSE) == FALSE) in DwInitializeSdFromThreadToken()
|
/reactos/dll/cpl/sysdm/ |
H A D | userprofile.c | 659 PTOKEN_USER pTokenUser = NULL; in AddUserProfiles() local 672 pTokenUser = HeapAlloc(GetProcessHeap(), 0, dwSize); in AddUserProfiles() 673 if (pTokenUser == NULL) in AddUserProfiles() 676 if (!GetTokenInformation(hToken, TokenUser, pTokenUser, dwSize, &dwSize)) in AddUserProfiles() 721 if (ConvertSidToStringSidW(pTokenUser->User.Sid, &pszProfileSid)) in AddUserProfiles() 730 pTokenUser->User.Sid, in AddUserProfiles() 748 if (pTokenUser != NULL) in AddUserProfiles() 749 HeapFree(GetProcessHeap(), 0, pTokenUser); in AddUserProfiles()
|
/reactos/dll/win32/msctf/ |
H A D | utils.cpp | 105 PTOKEN_USER pTokenUser = (PTOKEN_USER)cicMemAllocClear(dwLengthNeeded); in GetUserSIDString() local 106 if (!pTokenUser) in GetUserSIDString() 113 if (!GetTokenInformation(hToken, TokenUser, pTokenUser, dwLengthNeeded, &dwLengthNeeded) || in GetUserSIDString() 114 !ConvertSidToStringSid(pTokenUser->User.Sid, &StringSid)) in GetUserSIDString() 123 cicMemFree(pTokenUser); in GetUserSIDString()
|
/reactos/modules/rostests/tests/tokentest/ |
H A D | tokentest.c | 302 TOKEN_USER* pTokenUser = (PTOKEN_USER) GetFromToken(hTokenSource, TokenUser); in DisplayToken() local 309 DisplayTokenSids(pTokenUser, pTokenGroups, pTokenOwner, pTokenPrimaryGroup); in DisplayToken() 313 free(pTokenUser); in DisplayToken()
|