Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
edf55ec7
Commit
edf55ec7
authored
Aug 13, 2004
by
Mike McCormack
Committed by
Alexandre Julliard
Aug 13, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement SetThreadToken using NtSetInformationThread.
parent
0cc262c5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
security.c
dlls/advapi32/security.c
+2
-5
thread.c
dlls/ntdll/thread.c
+7
-1
No files found.
dlls/advapi32/security.c
View file @
edf55ec7
...
@@ -362,11 +362,8 @@ SetTokenInformation( HANDLE token, TOKEN_INFORMATION_CLASS tokeninfoclass,
...
@@ -362,11 +362,8 @@ SetTokenInformation( HANDLE token, TOKEN_INFORMATION_CLASS tokeninfoclass,
*/
*/
BOOL
WINAPI
SetThreadToken
(
PHANDLE
thread
,
HANDLE
token
)
BOOL
WINAPI
SetThreadToken
(
PHANDLE
thread
,
HANDLE
token
)
{
{
FIXME
(
"(%p, %p): stub (NT impl. only)
\n
"
,
thread
,
token
);
CallWin32ToNt
(
NtSetInformationThread
(
thread
?
*
thread
:
GetCurrentThread
(),
ThreadImpersonationToken
,
&
token
,
sizeof
token
));
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
}
}
/* ##############################
/* ##############################
...
...
dlls/ntdll/thread.c
View file @
edf55ec7
...
@@ -539,12 +539,18 @@ NTSTATUS WINAPI NtSetInformationThread( HANDLE handle, THREADINFOCLASS class,
...
@@ -539,12 +539,18 @@ NTSTATUS WINAPI NtSetInformationThread( HANDLE handle, THREADINFOCLASS class,
FIXME
(
"ZeroTlsCell not supported on other threads
\n
"
);
FIXME
(
"ZeroTlsCell not supported on other threads
\n
"
);
return
STATUS_NOT_IMPLEMENTED
;
return
STATUS_NOT_IMPLEMENTED
;
case
ThreadImpersonationToken
:
{
const
HANDLE
*
phToken
=
data
;
if
(
length
!=
sizeof
(
HANDLE
))
return
STATUS_INVALID_PARAMETER
;
FIXME
(
"Set ThreadImpersonationToken handle to %p
\n
"
,
*
phToken
);
return
STATUS_SUCCESS
;
}
case
ThreadBasicInformation
:
case
ThreadBasicInformation
:
case
ThreadTimes
:
case
ThreadTimes
:
case
ThreadPriority
:
case
ThreadPriority
:
case
ThreadBasePriority
:
case
ThreadBasePriority
:
case
ThreadAffinityMask
:
case
ThreadAffinityMask
:
case
ThreadImpersonationToken
:
case
ThreadDescriptorTableEntry
:
case
ThreadDescriptorTableEntry
:
case
ThreadEnableAlignmentFaultFixup
:
case
ThreadEnableAlignmentFaultFixup
:
case
ThreadEventPair_Reusable
:
case
ThreadEventPair_Reusable
:
...
...
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