Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
82860424
Commit
82860424
authored
Apr 29, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe: Implement PsGetThreadId.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
eb1146a5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
1 deletion
+11
-1
ntoskrnl.c
dlls/ntoskrnl.exe/ntoskrnl.c
+8
-0
ntoskrnl.exe.spec
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
+1
-1
driver.c
dlls/ntoskrnl.exe/tests/driver.c
+1
-0
ntddk.h
include/ddk/ntddk.h
+1
-0
No files found.
dlls/ntoskrnl.exe/ntoskrnl.c
View file @
82860424
...
...
@@ -2598,6 +2598,14 @@ NTSTATUS WINAPI PsLookupThreadByThreadId( HANDLE threadid, PETHREAD *thread )
return
status
;
}
/*********************************************************************
* PsGetThreadId (NTOSKRNL.@)
*/
HANDLE
WINAPI
PsGetThreadId
(
PETHREAD
thread
)
{
TRACE
(
"%p -> %p
\n
"
,
thread
,
thread
->
kthread
.
id
.
UniqueThread
);
return
thread
->
kthread
.
id
.
UniqueThread
;
}
/***********************************************************************
* KeInsertQueue (NTOSKRNL.EXE.@)
...
...
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
View file @
82860424
...
...
@@ -898,7 +898,7 @@
@ stdcall -arch=x86_64 PsGetProcessWow64Process(ptr)
@ stub PsGetThreadFreezeCount
@ stub PsGetThreadHardErrorsAreDisabled
@ st
ub PsGetThreadId
@ st
dcall PsGetThreadId(ptr)
@ stub PsGetThreadProcess
@ stub PsGetThreadProcessId
@ stub PsGetThreadSessionId
...
...
dlls/ntoskrnl.exe/tests/driver.c
View file @
82860424
...
...
@@ -340,6 +340,7 @@ static void test_currentprocess(void)
ret
=
wait_single
(
thread
,
0
);
ok
(
ret
==
STATUS_TIMEOUT
,
"got %#x
\n
"
,
ret
);
ok
(
PsGetThreadId
((
PETHREAD
)
KeGetCurrentThread
())
==
PsGetCurrentThreadId
(),
"thread IDs don't match
\n
"
);
ok
(
!
PsIsSystemThread
((
PETHREAD
)
KeGetCurrentThread
()),
"unexpected system thread
\n
"
);
}
...
...
include/ddk/ntddk.h
View file @
82860424
...
...
@@ -217,6 +217,7 @@ NTSTATUS WINAPI KeExpandKernelStackAndCallout(PEXPAND_STACK_CALLOUT,void*,SIZE_
void
WINAPI
KeSetTargetProcessorDpc
(
PRKDPC
,
CCHAR
);
BOOLEAN
WINAPI
MmIsAddressValid
(
void
*
);
HANDLE
WINAPI
PsGetProcessId
(
PEPROCESS
);
HANDLE
WINAPI
PsGetThreadId
(
PETHREAD
);
NTSTATUS
WINAPI
PsSetLoadImageNotifyRoutine
(
PLOAD_IMAGE_NOTIFY_ROUTINE
);
void
WINAPI
RtlInitializeGenericTableAvl
(
PRTL_AVL_TABLE
,
PRTL_AVL_COMPARE_ROUTINE
,
PRTL_AVL_ALLOCATE_ROUTINE
,
PRTL_AVL_FREE_ROUTINE
,
void
*
);
void
WINAPI
RtlInsertElementGenericTableAvl
(
PRTL_AVL_TABLE
,
void
*
,
ULONG
,
BOOL
*
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment