Home
last modified time | relevance | path

Searched refs:NtCurrentThread (Results 1 – 25 of 34) sorted by relevance

12

/reactos/modules/rostests/apitests/ntdll/
H A DNtOpenThreadToken.c19 Status = NtOpenThreadToken(NtCurrentThread(), in START_TEST()
31 Status = NtOpenThreadToken(NtCurrentThread(), in START_TEST()
45 Status = NtOpenThreadTokenEx(NtCurrentThread(), in START_TEST()
61 Status = NtSetInformationThread(NtCurrentThread(), in START_TEST()
H A Dprobelib.c258 Status = NtQueryInformationThread(NtCurrentThread(), in QuerySetThreadValidator()
328 Status = NtSetInformationThread(NtCurrentThread(), in QuerySetThreadValidator()
/reactos/sdk/lib/rtl/
H A Dpriv.c29 Status = ZwOpenThreadToken(NtCurrentThread(), DesiredAccess, in RtlpOpenThreadToken()
33 Status = ZwOpenThreadToken(NtCurrentThread(), DesiredAccess, in RtlpOpenThreadToken()
90 Status = ZwSetInformationThread(NtCurrentThread(), in RtlImpersonateSelf()
185 Status = ZwSetInformationThread(NtCurrentThread(), in RtlAcquirePrivilege()
238 Status = ZwSetInformationThread(NtCurrentThread(), in RtlAcquirePrivilege()
335 IntStatus = ZwSetInformationThread(NtCurrentThread(), ThreadImpersonationToken, in RtlAcquirePrivilege()
376 Status = ZwSetInformationThread(NtCurrentThread(), ThreadImpersonationToken, in RtlReleasePrivilege()
432 Status = ZwOpenThreadToken(NtCurrentThread(), in RtlAdjustPrivilege()
H A Dworkitem.c42 return NtTerminateThread(NtCurrentThread(), ExitStatus); in RtlpExitThread()
150 Status = NtOpenThreadToken(NtCurrentThread(), in RtlpGetImpersonationToken()
208 Status = NtSetInformationThread(NtCurrentThread(), in RtlpExecuteWorkItem()
237 Status = NtSetInformationThread(NtCurrentThread(), in RtlpExecuteWorkItem()
325 Status = NtSetInformationThread(NtCurrentThread(), in RtlpExecuteIoWorkItem()
354 Status = NtSetInformationThread(NtCurrentThread(), in RtlpExecuteIoWorkItem()
527 NtCurrentThread(), in RtlpIsIoPending()
576 NtCurrentThread(), in RtlpIoWorkerThreadProc()
H A Dthread.c196 ZwQueryInformationThread(NtCurrentThread(), in RtlSetThreadIsCritical()
206 return ZwSetInformationThread(NtCurrentThread(), in RtlSetThreadIsCritical()
295 NtTerminateThread(NtCurrentThread(), Status); in RtlExitUserThread()
H A Dsecurity.c267 Status = NtOpenThreadToken(NtCurrentThread(), in RtlDefaultNpAcl()
626 Status = NtOpenThreadToken(NtCurrentThread(), TOKEN_QUERY, TRUE, &Token); in RtlNewSecurityGrantedAccess()
/reactos/win32ss/user/winsrv/usersrv/
H A Dshutdown.c199 NtUserSetInformationThread(NtCurrentThread(), in EndNowThreadProc()
807 Status = NtUserSetInformationThread(NtCurrentThread(), in CSR_API()
821 NtUserSetInformationThread(NtCurrentThread(), UserThreadRestoreDesktop, NULL, 0); in CSR_API()
835 Status = NtUserSetInformationThread(NtCurrentThread(), in CSR_API()
866 NtUserSetInformationThread(NtCurrentThread(), UserThreadRestoreDesktop, NULL, 0); in CSR_API()
H A Dregister.c66 Status = NtUserSetInformationThread(NtCurrentThread(), in CSR_API()
H A Dinit.c203 Status = NtUserSetInformationThread(NtCurrentThread(), in UserClientConnect()
H A Dharderror.c1122 Status = NtUserSetInformationThread(NtCurrentThread(), in UserServerHardError()
1183 NtUserSetInformationThread(NtCurrentThread(), UserThreadRestoreDesktop, NULL, 0); in UserServerHardError()
/reactos/base/system/lsass/
H A Dlsass.c82 NtTerminateThread(NtCurrentThread(), Status); in wWinMain()
/reactos/dll/win32/advapi32/misc/
H A Dlogon.c692 Status = NtOpenThreadToken(NtCurrentThread(), in CreateProcessAsUserCommon()
715 Status = NtSetInformationThread(NtCurrentThread(), in CreateProcessAsUserCommon()
780 Status = NtSetInformationThread(NtCurrentThread(), in CreateProcessAsUserCommon()
807 Status = NtSetInformationThread(NtCurrentThread(), in CreateProcessAsUserCommon()
896 StatusOnExit = NtSetInformationThread(NtCurrentThread(), in CreateProcessAsUserCommon()
/reactos/subsystems/csr/csrss/
H A Dcsrss.c93 NtTerminateThread(NtCurrentThread(), Status); in _main()
/reactos/subsystems/csr/csrsrv/
H A Dprocsup.c840 Status = NtOpenThreadToken(NtCurrentThread(), in CsrGetProcessLuid()
948 Status = NtImpersonateThread(NtCurrentThread(), in CsrImpersonateClient()
1081 Status = NtSetInformationThread(NtCurrentThread(), in CsrRevertToSelf()
/reactos/dll/win32/kernel32/client/
H A Dutils.c73 Status = NtOpenThreadToken(NtCurrentThread(), in BaseGetNamedObjectDirectory()
80 Status = NtSetInformationThread(NtCurrentThread(), in BaseGetNamedObjectDirectory()
143 NtSetInformationThread(NtCurrentThread(), in BaseGetNamedObjectDirectory()
H A Dhandle.c164 (hSourceHandle != NtCurrentThread()))) in DuplicateHandle()
H A Dthread.c379 Status = NtQueryInformationThread(NtCurrentThread(), in ExitThread()
1208 Status = NtSetInformationThread(NtCurrentThread(), in TlsFree()
/reactos/ntoskrnl/ob/
H A Dobref.c218 if (AccessMode != KernelMode || Handle == NtCurrentProcess() || Handle == NtCurrentThread()) in ObReferenceFileObjectForWrite()
566 else if (Handle == NtCurrentThread()) in ObReferenceObjectByHandle()
/reactos/dll/win32/advapi32/token/
H A Dtoken.c52 Status = NtOpenThreadToken(NtCurrentThread(), in CheckTokenMembership()
/reactos/subsystems/win/basesrv/
H A Ddosdev.c61 Status = NtOpenThreadToken(NtCurrentThread(), in GetCallerLuid()
363 NtTerminateThread(NtCurrentThread(), ExitStatus); in BaseSrvBSMThread()
/reactos/dll/win32/kernel32/client/file/
H A Dnpipe.c59 Status = NtOpenThreadToken(NtCurrentThread(), TOKEN_IMPERSONATE, TRUE, &hToken); in NpGetUserNamep()
78 Status = NtSetInformationThread(NtCurrentThread(), ThreadImpersonationToken, in NpGetUserNamep()
/reactos/sdk/include/ndk/
H A Dpstypes.h327 #define NtCurrentThread() ((HANDLE)(LONG_PTR)-2) macro
328 #define ZwCurrentThread() NtCurrentThread()
/reactos/ntoskrnl/include/internal/
H A Dob.h78 ((Handle) != NtCurrentThread()))
/reactos/base/setup/usetup/
H A Ddevinst.c509 NtTerminateThread(NtCurrentThread(), Status); in PnpEventThread()
/reactos/sdk/include/xdk/
H A Dzwfuncs.h10 #define NtCurrentThread() ( (HANDLE)(LONG_PTR) -2 ) macro
11 #define ZwCurrentThread() NtCurrentThread()

12