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
bfaac277
Commit
bfaac277
authored
Jun 21, 2005
by
James Hawkins
Committed by
Alexandre Julliard
Jun 21, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement IsTokenRestricted.
parent
f724399f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
2 deletions
+32
-2
security.c
dlls/advapi32/security.c
+32
-2
No files found.
dlls/advapi32/security.c
View file @
bfaac277
...
...
@@ -467,9 +467,39 @@ CopySid( DWORD nDestinationSidLength, PSID pDestinationSid, PSID pSourceSid )
BOOL
WINAPI
IsTokenRestricted
(
HANDLE
TokenHandle
)
{
FIXME
(
"%p - stub
\n
"
,
TokenHandle
);
TOKEN_GROUPS
*
groups
;
DWORD
size
;
NTSTATUS
status
;
BOOL
restricted
;
return
FALSE
;
TRACE
(
"(%p)
\n
"
,
TokenHandle
);
status
=
NtQueryInformationToken
(
TokenHandle
,
TokenRestrictedSids
,
NULL
,
0
,
&
size
);
if
(
status
!=
STATUS_BUFFER_TOO_SMALL
)
return
FALSE
;
groups
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
if
(
!
groups
)
{
SetLastError
(
ERROR_OUTOFMEMORY
);
return
FALSE
;
}
status
=
NtQueryInformationToken
(
TokenHandle
,
TokenRestrictedSids
,
groups
,
size
,
&
size
);
if
(
status
!=
STATUS_SUCCESS
)
{
HeapFree
(
GetProcessHeap
(),
0
,
groups
);
return
set_ntstatus
(
status
);
}
if
(
groups
->
GroupCount
)
restricted
=
TRUE
;
else
restricted
=
FALSE
;
HeapFree
(
GetProcessHeap
(),
0
,
groups
);
return
restricted
;
}
/******************************************************************************
...
...
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