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
2b76f866
Commit
2b76f866
authored
Aug 22, 2010
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Aug 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Add a stub for TokenElevation in NtQueryInformationToken.
parent
2e5d7064
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
18 deletions
+43
-18
nt.c
dlls/ntdll/nt.c
+43
-18
No files found.
dlls/ntdll/nt.c
View file @
2b76f866
...
...
@@ -249,29 +249,47 @@ NTSTATUS WINAPI NtQueryInformationToken(
ULONG
tokeninfolength
,
PULONG
retlen
)
{
ULONG
len
;
static
const
ULONG
info_len
[]
=
{
0
,
0
,
/* TokenUser */
0
,
/* TokenGroups */
0
,
/* TokenPrivileges */
0
,
/* TokenOwner */
0
,
/* TokenPrimaryGroup */
0
,
/* TokenDefaultDacl */
sizeof
(
TOKEN_SOURCE
),
/* TokenSource */
sizeof
(
TOKEN_TYPE
),
/* TokenType */
sizeof
(
SECURITY_IMPERSONATION_LEVEL
),
/* TokenImpersonationLevel */
sizeof
(
TOKEN_STATISTICS
),
/* TokenStatistics */
0
,
/* TokenRestrictedSids */
0
,
/* TokenSessionId */
0
,
/* TokenGroupsAndPrivileges */
0
,
/* TokenSessionReference */
0
,
/* TokenSandBoxInert */
0
,
/* TokenAuditPolicy */
0
,
/* TokenOrigin */
0
,
/* TokenElevationType */
0
,
/* TokenLinkedToken */
sizeof
(
TOKEN_ELEVATION
),
/* TokenElevation */
0
,
/* TokenHasRestrictions */
0
,
/* TokenAccessInformation */
0
,
/* TokenVirtualizationAllowed */
0
,
/* TokenVirtualizationEnabled */
0
,
/* TokenIntegrityLevel */
0
,
/* TokenUIAccess */
0
,
/* TokenMandatoryPolicy */
0
/* TokenLogonSid */
};
ULONG
len
=
0
;
NTSTATUS
status
=
STATUS_SUCCESS
;
TRACE
(
"(%p,%d,%p,%d,%p)
\n
"
,
token
,
tokeninfoclass
,
tokeninfo
,
tokeninfolength
,
retlen
);
switch
(
tokeninfoclass
)
{
case
TokenSource
:
len
=
sizeof
(
TOKEN_SOURCE
);
break
;
case
TokenType
:
len
=
sizeof
(
TOKEN_TYPE
);
break
;
case
TokenImpersonationLevel
:
len
=
sizeof
(
SECURITY_IMPERSONATION_LEVEL
);
break
;
case
TokenStatistics
:
len
=
sizeof
(
TOKEN_STATISTICS
);
break
;
default:
len
=
0
;
}
if
(
tokeninfoclass
<
MaxTokenInfoClass
)
len
=
info_len
[
tokeninfoclass
];
if
(
retlen
)
*
retlen
=
len
;
...
...
@@ -489,6 +507,13 @@ NTSTATUS WINAPI NtQueryInformationToken(
}
SERVER_END_REQ
;
break
;
case
TokenElevation
:
{
TOKEN_ELEVATION
*
elevation
=
tokeninfo
;
FIXME
(
"QueryInformationToken( ..., TokenElevation, ...) semi-stub
\n
"
);
elevation
->
TokenIsElevated
=
TRUE
;
}
break
;
default:
{
ERR
(
"Unhandled Token Information class %d!
\n
"
,
tokeninfoclass
);
...
...
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