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
bf1537da
Commit
bf1537da
authored
Nov 15, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 15, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Added TokenIsAppContainer tests.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
08324e31
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
security.c
dlls/advapi32/tests/security.c
+26
-0
No files found.
dlls/advapi32/tests/security.c
View file @
bf1537da
...
...
@@ -1912,6 +1912,31 @@ static void test_token_attr(void)
CloseHandle
(
Token
);
}
static
void
test_GetTokenInformation
(
void
)
{
DWORD
is_app_container
,
size
;
HANDLE
token
;
BOOL
ret
;
ret
=
OpenProcessToken
(
GetCurrentProcess
(),
MAXIMUM_ALLOWED
,
&
token
);
ok
(
ret
,
"OpenProcessToken failed: %u
\n
"
,
GetLastError
());
size
=
0
;
is_app_container
=
0xdeadbeef
;
ret
=
GetTokenInformation
(
token
,
TokenIsAppContainer
,
&
is_app_container
,
sizeof
(
is_app_container
),
&
size
);
todo_wine
ok
(
ret
||
broken
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
||
GetLastError
()
==
ERROR_INVALID_FUNCTION
),
/* pre-win8 */
"GetTokenInformation failed: %u
\n
"
,
GetLastError
());
if
(
ret
)
{
ok
(
size
==
sizeof
(
is_app_container
),
"size = %u
\n
"
,
size
);
ok
(
!
is_app_container
,
"is_app_container = %x
\n
"
,
is_app_container
);
}
CloseHandle
(
token
);
}
typedef
union
_MAX_SID
{
SID
sid
;
...
...
@@ -6396,6 +6421,7 @@ START_TEST(security)
test_FileSecurity
();
test_AccessCheck
();
test_token_attr
();
test_GetTokenInformation
();
test_LookupAccountSid
();
test_LookupAccountName
();
test_security_descriptor
();
...
...
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