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
0d2ea2a9
Commit
0d2ea2a9
authored
Jun 27, 2005
by
Eric Pouech
Committed by
Alexandre Julliard
Jun 27, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented OpenThread on top of NtOpenThread.
parent
803c8d96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
8 deletions
+19
-8
thread.c
dlls/kernel/thread.c
+19
-8
No files found.
dlls/kernel/thread.c
View file @
0d2ea2a9
...
...
@@ -200,16 +200,27 @@ HANDLE WINAPI CreateRemoteThread( HANDLE hProcess, SECURITY_ATTRIBUTES *sa, SIZE
*/
HANDLE
WINAPI
OpenThread
(
DWORD
dwDesiredAccess
,
BOOL
bInheritHandle
,
DWORD
dwThreadId
)
{
HANDLE
ret
=
0
;
SERVER_START_REQ
(
open_thread
)
NTSTATUS
status
;
HANDLE
handle
;
OBJECT_ATTRIBUTES
attr
;
CLIENT_ID
cid
;
attr
.
Length
=
sizeof
(
attr
);
attr
.
RootDirectory
=
0
;
attr
.
Attributes
=
bInheritHandle
?
OBJ_INHERIT
:
0
;
attr
.
ObjectName
=
NULL
;
attr
.
SecurityDescriptor
=
NULL
;
attr
.
SecurityQualityOfService
=
NULL
;
cid
.
UniqueProcess
=
0
;
/* FIXME */
cid
.
UniqueThread
=
(
HANDLE
)
dwThreadId
;
status
=
NtOpenThread
(
&
handle
,
dwDesiredAccess
,
&
attr
,
&
cid
);
if
(
status
)
{
req
->
tid
=
dwThreadId
;
req
->
access
=
dwDesiredAccess
;
req
->
inherit
=
bInheritHandle
;
if
(
!
wine_server_call_err
(
req
))
ret
=
reply
->
handle
;
SetLastError
(
RtlNtStatusToDosError
(
status
)
);
handle
=
0
;
}
SERVER_END_REQ
;
return
ret
;
return
handle
;
}
...
...
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