/reactos/modules/rostests/apitests/ntdll/ |
H A D | NtOpenThreadToken.c | 13 HANDLE TokenHandle; in START_TEST() local 18 TokenHandle = (HANDLE)0x55555555; in START_TEST() 22 &TokenHandle); in START_TEST() 25 TokenHandle == NULL /* Win7 */, "TokenHandle = %p\n", TokenHandle); in START_TEST() 34 &TokenHandle); in START_TEST() 38 ok((LONG_PTR)TokenHandle > 0, "TokenHandle = %p\n", TokenHandle); in START_TEST() 39 Status = NtClose(TokenHandle); in START_TEST() 53 ok((LONG_PTR)TokenHandle > 0, "TokenHandle = %p\n", TokenHandle); in START_TEST() 54 Status = NtClose(TokenHandle); in START_TEST() 60 TokenHandle = NULL; in START_TEST() [all …]
|
H A D | NtOpenProcessToken.c | 13 HANDLE TokenHandle; in START_TEST() local 17 &TokenHandle); in START_TEST() 21 ok((LONG_PTR)TokenHandle > 0, "TokenHandle = %p\n", TokenHandle); in START_TEST() 22 Status = NtClose(TokenHandle); in START_TEST() 29 &TokenHandle); in START_TEST() 33 ok((LONG_PTR)TokenHandle > 0, "TokenHandle = %p\n", TokenHandle); in START_TEST() 34 Status = NtClose(TokenHandle); in START_TEST() 41 &TokenHandle); in START_TEST() 45 ok((LONG_PTR)TokenHandle > 0, "TokenHandle = %p\n", TokenHandle); in START_TEST() 46 Status = NtClose(TokenHandle); in START_TEST()
|
H A D | NtAdjustGroupsToken.c | 30 HANDLE TokenHandle; in START_TEST() local 34 TokenHandle = GetProcessToken(TOKEN_DUPLICATE); in START_TEST() 46 Status = NtAdjustGroupsToken(TokenHandle, in START_TEST() 55 CloseHandle(TokenHandle); in START_TEST() 56 TokenHandle = GetProcessToken(TOKEN_ADJUST_GROUPS); in START_TEST() 59 Status = NtAdjustGroupsToken(TokenHandle, in START_TEST() 68 Status = NtAdjustGroupsToken(TokenHandle, in START_TEST() 76 CloseHandle(TokenHandle); in START_TEST()
|
H A D | NtDuplicateToken.c | 69 HANDLE TokenHandle; in DuplicateTokenAsEffective() local 82 TokenHandle = OpenTokenFromProcess(); in DuplicateTokenAsEffective() 101 DisablePrivilege(TokenHandle, L"SeImpersonatePrivilege"); in DuplicateTokenAsEffective() 104 Status = NtQueryInformationToken(TokenHandle, TokenStatistics, NULL, 0, &Size); in DuplicateTokenAsEffective() 120 Status = NtQueryInformationToken(TokenHandle, TokenStatistics, TokenStats, Size, &Size); in DuplicateTokenAsEffective() 131 Status = NtDuplicateToken(TokenHandle, in DuplicateTokenAsEffective() 161 CloseHandle(TokenHandle), in DuplicateTokenAsEffective()
|
H A D | RtlRemovePrivileges.c | 14 HANDLE TokenHandle, TestTokenHandle; in START_TEST() local 23 Status = NtOpenProcessToken(GetCurrentProcess(), TOKEN_DUPLICATE, &TokenHandle); in START_TEST() 30 …Status = NtDuplicateToken(TokenHandle, TOKEN_ALL_ACCESS, NULL, FALSE, TokenPrimary, &TestTokenHand… in START_TEST() 31 NtClose(TokenHandle); in START_TEST()
|
H A D | NtAdjustPrivilegesToken.c | 13 _In_ HANDLE TokenHandle, in IsPrivilegeEnabled() argument 24 Success = PrivilegeCheck(TokenHandle, &PrivSet, &Result); in IsPrivilegeEnabled()
|
/reactos/sdk/lib/rtl/ |
H A D | workitem.c | 63 HANDLE TokenHandle; member 153 TokenHandle); in RtlpGetImpersonationToken() 156 *TokenHandle = NULL; in RtlpGetImpersonationToken() 206 if (WorkItem.TokenHandle != NULL) in RtlpExecuteWorkItem() 213 NtClose(WorkItem.TokenHandle); in RtlpExecuteWorkItem() 236 WorkItem.TokenHandle = NULL; in RtlpExecuteWorkItem() 323 if (WorkItem.TokenHandle != NULL) in RtlpExecuteIoWorkItem() 330 NtClose(WorkItem.TokenHandle); in RtlpExecuteIoWorkItem() 353 WorkItem.TokenHandle = NULL; in RtlpExecuteIoWorkItem() 820 WorkItem->TokenHandle = NULL; in RtlQueueWorkItem() [all …]
|
H A D | priv.c | 25 OUT PHANDLE TokenHandle) in RtlpOpenThreadToken() argument 30 TRUE, TokenHandle); in RtlpOpenThreadToken() 34 FALSE, TokenHandle); in RtlpOpenThreadToken() 423 HANDLE TokenHandle; in RtlAdjustPrivilege() local 435 &TokenHandle); in RtlAdjustPrivilege() 441 &TokenHandle); in RtlAdjustPrivilege() 457 Status = ZwAdjustPrivilegesToken(TokenHandle, in RtlAdjustPrivilege() 463 ZwClose (TokenHandle); in RtlAdjustPrivilege() 516 _In_ HANDLE TokenHandle, 547 Status = ZwQueryInformationToken(TokenHandle, [all …]
|
H A D | security.c | 241 HANDLE TokenHandle; in RtlDefaultNpAcl() local 270 &TokenHandle); in RtlDefaultNpAcl() 280 &TokenHandle); in RtlDefaultNpAcl() 290 Status = NtQueryInformationToken(TokenHandle, in RtlDefaultNpAcl() 306 Status = NtQueryInformationToken(TokenHandle, in RtlDefaultNpAcl() 383 NtClose(TokenHandle); in RtlDefaultNpAcl() 569 HANDLE TokenHandle; in RtlCreateUserSecurityObject() local 581 Status = NtOpenProcessToken(NtCurrentProcess(), TOKEN_QUERY, &TokenHandle); in RtlCreateUserSecurityObject() 589 TokenHandle, in RtlCreateUserSecurityObject() 593 NtClose(TokenHandle); in RtlCreateUserSecurityObject()
|
H A D | registry.c | 744 HANDLE TokenHandle; in RtlFormatCurrentUserKeyPath() local 757 &TokenHandle); in RtlFormatCurrentUserKeyPath() 767 &TokenHandle); in RtlFormatCurrentUserKeyPath() 773 Status = ZwQueryInformationToken(TokenHandle, in RtlFormatCurrentUserKeyPath() 780 ZwClose(TokenHandle); in RtlFormatCurrentUserKeyPath()
|
/reactos/sdk/include/ndk/ |
H A D | sefuncs.h | 155 _In_ HANDLE TokenHandle, 168 _In_ HANDLE TokenHandle, 203 _Out_ PHANDLE TokenHandle, 274 _Out_ PHANDLE TokenHandle); 316 _In_ HANDLE TokenHandle, 328 _In_ HANDLE TokenHandle, 350 _In_ HANDLE TokenHandle, 362 _In_ HANDLE TokenHandle, 388 _Out_ PHANDLE TokenHandle, 489 _In_ HANDLE TokenHandle, [all …]
|
H A D | psfuncs.h | 478 _Out_ PHANDLE TokenHandle 498 _Out_ PHANDLE TokenHandle 509 _Out_ PHANDLE TokenHandle 725 _Out_ PHANDLE TokenHandle 745 _Out_ PHANDLE TokenHandle 756 _Out_ PHANDLE TokenHandle
|
/reactos/dll/win32/msgina/ |
H A D | lsa.c | 81 HANDLE TokenHandle = NULL; in MyLogonUser() local 211 &TokenHandle, in MyLogonUser() 234 if (TokenHandle != NULL) in MyLogonUser() 236 TRACE("TokenHandle: %p\n", TokenHandle); in MyLogonUser() 239 *phToken = TokenHandle; in MyLogonUser() 247 if (TokenHandle != NULL) in MyLogonUser() 248 CloseHandle(TokenHandle); in MyLogonUser()
|
/reactos/dll/win32/advapi32/token/ |
H A D | token.c | 207 IsTokenRestricted(HANDLE TokenHandle) in IsTokenRestricted() argument 216 Status = NtQueryInformationToken(TokenHandle, in IsTokenRestricted() 238 Status = NtQueryInformationToken(TokenHandle, in IsTokenRestricted() 274 GetSiteSidFromToken(IN HANDLE TokenHandle) in GetSiteSidFromToken() argument 283 Status = NtQueryInformationToken(TokenHandle, in GetSiteSidFromToken() 303 Status = NtQueryInformationToken(TokenHandle, in GetSiteSidFromToken()
|
/reactos/ntoskrnl/ps/ |
H A D | security.c | 216 IN HANDLE TokenHandle OPTIONAL, in PspSetPrimaryToken() 232 Status = ObReferenceObjectByHandle(TokenHandle, in PspSetPrimaryToken() 352 OUT PHANDLE TokenHandle) in NtOpenProcessToken() argument 358 TokenHandle); in NtOpenProcessToken() 369 OUT PHANDLE TokenHandle) in NtOpenProcessTokenEx() argument 386 ProbeForWriteHandle(TokenHandle); in NtOpenProcessTokenEx() 420 *TokenHandle = hToken; in NtOpenProcessTokenEx() 503 IN HANDLE TokenHandle) in PsAssignImpersonationToken() argument 509 PSTRACE(PS_SECURITY_DEBUG, "Thread: %p Token: %p\n", Thread, TokenHandle); in PsAssignImpersonationToken() 512 if (!TokenHandle) in PsAssignImpersonationToken() [all …]
|
/reactos/dll/win32/lsasrv/ |
H A D | authport.c | 44 HANDLE TokenHandle = NULL; in LsapIsTrustedClient() local 52 &TokenHandle); in LsapIsTrustedClient() 56 Status = NtQueryInformationToken(TokenHandle, in LsapIsTrustedClient() 68 Status = NtQueryInformationToken(TokenHandle, in LsapIsTrustedClient() 89 if (TokenHandle != NULL) in LsapIsTrustedClient() 90 NtClose(TokenHandle); in LsapIsTrustedClient()
|
/reactos/win32ss/user/ntuser/ |
H A D | security.c | 30 HANDLE TokenHandle; in IntGetCurrentAccessToken() local 43 &TokenHandle); in IntGetCurrentAccessToken() 58 &TokenHandle); in IntGetCurrentAccessToken() 67 return TokenHandle; in IntGetCurrentAccessToken() 76 return TokenHandle; in IntGetCurrentAccessToken()
|
/reactos/base/system/smss/ |
H A D | smutil.c | 27 HANDLE TokenHandle; member 61 &State->TokenHandle); in SmpAcquirePrivilege() 78 Status = NtAdjustPrivilegesToken(State->TokenHandle, in SmpAcquirePrivilege() 96 Status = NtAdjustPrivilegesToken(State->TokenHandle, in SmpAcquirePrivilege() 122 NtClose(State->TokenHandle); in SmpAcquirePrivilege() 134 NtAdjustPrivilegesToken(State->TokenHandle, in SmpReleasePrivilege() 149 NtClose(State->TokenHandle); in SmpReleasePrivilege()
|
/reactos/dll/win32/advapi32/misc/ |
H A D | logon.c | 130 _In_ HANDLE TokenHandle, in CreateDefaultProcessSecurityCommon() argument 150 Status = NtQueryInformationToken(TokenHandle, in CreateDefaultProcessSecurityCommon() 172 Status = NtQueryInformationToken(TokenHandle, in CreateDefaultProcessSecurityCommon() 185 Status = NtQueryInformationToken(TokenHandle, in CreateDefaultProcessSecurityCommon() 209 Status = NtQueryInformationToken(TokenHandle, in CreateDefaultProcessSecurityCommon() 1192 HANDLE TokenHandle = NULL; in LogonUserExW() local 1371 &TokenHandle, in LogonUserExW() 1394 if (TokenHandle != NULL) in LogonUserExW() 1400 *phToken = TokenHandle; in LogonUserExW() 1410 if (TokenHandle != NULL) in LogonUserExW() [all …]
|
/reactos/subsystems/win/basesrv/ |
H A D | dosdev.c | 48 HANDLE TokenHandle; in GetCallerLuid() local 59 TokenHandle = 0; in GetCallerLuid() 63 FALSE, &TokenHandle); in GetCallerLuid() 69 &TokenHandle); in GetCallerLuid() 75 Status = NtQueryInformationToken(TokenHandle, in GetCallerLuid() 87 if (TokenHandle != 0) in GetCallerLuid() 89 NtClose(TokenHandle); in GetCallerLuid()
|
/reactos/ntoskrnl/se/ |
H A D | tokenadj.c | 452 _In_ HANDLE TokenHandle, 545 Status = ObReferenceObjectByHandle(TokenHandle, 696 _In_ HANDLE TokenHandle, 801 Status = ObReferenceObjectByHandle(TokenHandle,
|
H A D | token.c | 1183 HANDLE TokenHandle; in SepOpenThreadToken() local 1205 &TokenHandle); in SepOpenThreadToken() 1213 *OpenedTokenHandle = TokenHandle; in SepOpenThreadToken() 1320 &TokenHandle); in SepOpenThreadToken() 1344 *OpenedTokenHandle = TokenHandle; in SepOpenThreadToken() 2336 _Out_ PHANDLE TokenHandle) in NtOpenThreadTokenEx() argument 2357 ProbeForWriteHandle(TokenHandle); in NtOpenThreadTokenEx() 2440 *TokenHandle = hToken; in NtOpenThreadTokenEx() 2478 _Out_ PHANDLE TokenHandle) in NtOpenThreadToken() argument 2481 TokenHandle); in NtOpenThreadToken()
|
/reactos/sdk/include/xdk/ |
H A D | ntifs.template.h | 96 _Out_ PHANDLE TokenHandle); 106 _Out_ PHANDLE TokenHandle); 117 _In_ HANDLE TokenHandle, 129 _In_ HANDLE TokenHandle, 384 _Out_ PHANDLE TokenHandle); 395 _Out_ PHANDLE TokenHandle); 404 _Out_ PHANDLE TokenHandle); 446 _In_ HANDLE TokenHandle, 457 _In_ HANDLE TokenHandle,
|
H A D | zwfuncs.h | 652 _In_ HANDLE TokenHandle, 691 _Out_ PHANDLE TokenHandle); 702 _Out_ PHANDLE TokenHandle); 1234 _In_ HANDLE TokenHandle, 1244 _In_ HANDLE TokenHandle, 1356 _Out_ PHANDLE TokenHandle 1376 _Out_ PHANDLE TokenHandle
|
/reactos/dll/win32/advapi32/wine/ |
H A D | security.c | 296 PHANDLE TokenHandle) in OpenProcessToken() argument 304 TokenHandle); in OpenProcessToken() 312 TRACE("Returning token %p.\n", *TokenHandle); in OpenProcessToken() 337 BOOL OpenAsSelf, HANDLE *TokenHandle) in OpenThreadToken() argument 346 AdjustTokenGroups(HANDLE TokenHandle, in AdjustTokenGroups() argument 355 Status = NtAdjustGroupsToken(TokenHandle, in AdjustTokenGroups() 374 AdjustTokenPrivileges(HANDLE TokenHandle, in AdjustTokenPrivileges() argument 411 GetTokenInformation(HANDLE TokenHandle, in GetTokenInformation() argument 437 SetTokenInformation(HANDLE TokenHandle, in SetTokenInformation() argument 444 Status = NtSetInformationToken(TokenHandle, in SetTokenInformation() [all …]
|