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
2f7e7863
Commit
2f7e7863
authored
May 21, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
May 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe: Implement PsGetThreadProcessId.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c4832019
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
1 deletion
+12
-1
ntoskrnl.c
dlls/ntoskrnl.exe/ntoskrnl.c
+9
-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 @
2f7e7863
...
...
@@ -2688,6 +2688,15 @@ HANDLE WINAPI PsGetThreadId(PETHREAD thread)
return
thread
->
kthread
.
id
.
UniqueThread
;
}
/*********************************************************************
* PsGetThreadProcessId (NTOSKRNL.@)
*/
HANDLE
WINAPI
PsGetThreadProcessId
(
PETHREAD
thread
)
{
TRACE
(
"%p -> %p
\n
"
,
thread
,
thread
->
kthread
.
id
.
UniqueProcess
);
return
thread
->
kthread
.
id
.
UniqueProcess
;
}
/***********************************************************************
* KeInsertQueue (NTOSKRNL.EXE.@)
*/
...
...
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
View file @
2f7e7863
...
...
@@ -902,7 +902,7 @@
@ stub PsGetThreadHardErrorsAreDisabled
@ stdcall PsGetThreadId(ptr)
@ stub PsGetThreadProcess
@ st
ub PsGetThreadProcessId
@ st
dcall PsGetThreadProcessId(ptr)
@ stub PsGetThreadSessionId
@ stub PsGetThreadTeb
@ stub PsGetThreadWin32Thread
...
...
dlls/ntoskrnl.exe/tests/driver.c
View file @
2f7e7863
...
...
@@ -346,6 +346,7 @@ static void test_current_thread(BOOL is_system)
ok
(
current
!=
*
pPsInitialSystemProcess
,
"current == PsInitialSystemProcess
\n
"
);
ok
(
PsGetProcessId
(
current
)
==
PsGetCurrentProcessId
(),
"process IDs don't match
\n
"
);
ok
(
PsGetThreadProcessId
((
PETHREAD
)
KeGetCurrentThread
())
==
PsGetCurrentProcessId
(),
"process IDs don't match
\n
"
);
thread
=
PsGetCurrentThread
();
ret
=
wait_single
(
thread
,
0
);
...
...
include/ddk/ntddk.h
View file @
2f7e7863
...
...
@@ -221,6 +221,7 @@ void WINAPI KeSetTargetProcessorDpc(PRKDPC,CCHAR);
BOOLEAN
WINAPI
MmIsAddressValid
(
void
*
);
HANDLE
WINAPI
PsGetProcessId
(
PEPROCESS
);
HANDLE
WINAPI
PsGetThreadId
(
PETHREAD
);
HANDLE
WINAPI
PsGetThreadProcessId
(
PETHREAD
);
NTSTATUS
WINAPI
PsSetCreateProcessNotifyRoutine
(
PCREATE_PROCESS_NOTIFY_ROUTINE
,
BOOLEAN
);
NTSTATUS
WINAPI
PsSetCreateProcessNotifyRoutineEx
(
PCREATE_PROCESS_NOTIFY_ROUTINE_EX
,
BOOLEAN
);
NTSTATUS
WINAPI
PsSetCreateThreadNotifyRoutine
(
PCREATE_THREAD_NOTIFY_ROUTINE
);
...
...
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