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
c6e513dc
Commit
c6e513dc
authored
Aug 01, 2006
by
Robert Reif
Committed by
Alexandre Julliard
Aug 01, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: More LsaQueryInformationPolicy tests.
parent
9198d016
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
5 deletions
+27
-5
lsa.c
dlls/advapi32/tests/lsa.c
+27
-5
No files found.
dlls/advapi32/tests/lsa.c
View file @
c6e513dc
...
...
@@ -66,12 +66,34 @@ static void test_lsa(void)
ok
(
status
==
STATUS_SUCCESS
,
"LsaOpenPolicy() returned 0x%08lx
\n
"
,
status
);
if
(
status
==
STATUS_SUCCESS
)
{
PPOLICY_PRIMARY_DOMAIN_INFO
domain_info
;
PPOLICY_AUDIT_EVENTS_INFO
audit_events_info
;
PPOLICY_PRIMARY_DOMAIN_INFO
primary_domain_info
;
PPOLICY_ACCOUNT_DOMAIN_INFO
account_domain_info
;
PPOLICY_DNS_DOMAIN_INFO
dns_domain_info
;
status
=
pLsaQueryInformationPolicy
(
handle
,
PolicyPrimaryDomainInformation
,
(
PVOID
*
)
&
domain_info
);
ok
(
status
==
STATUS_SUCCESS
,
"LsaQueryInformationPolicy() failed, returned 0x%08lx
\n
"
,
status
);
if
(
status
==
STATUS_SUCCESS
)
pLsaFreeMemory
((
LPVOID
)
domain_info
);
status
=
pLsaQueryInformationPolicy
(
handle
,
PolicyAuditEventsInformation
,
(
PVOID
*
)
&
audit_events_info
);
ok
(
status
==
STATUS_SUCCESS
,
"LsaQueryInformationPolicy(PolicyAuditEventsInformation) failed, returned 0x%08lx
\n
"
,
status
);
if
(
status
==
STATUS_SUCCESS
)
{
pLsaFreeMemory
((
LPVOID
)
audit_events_info
);
}
status
=
pLsaQueryInformationPolicy
(
handle
,
PolicyPrimaryDomainInformation
,
(
PVOID
*
)
&
primary_domain_info
);
ok
(
status
==
STATUS_SUCCESS
,
"LsaQueryInformationPolicy(PolicyPrimaryDomainInformation) failed, returned 0x%08lx
\n
"
,
status
);
if
(
status
==
STATUS_SUCCESS
)
{
pLsaFreeMemory
((
LPVOID
)
primary_domain_info
);
}
status
=
pLsaQueryInformationPolicy
(
handle
,
PolicyAccountDomainInformation
,
(
PVOID
*
)
&
account_domain_info
);
ok
(
status
==
STATUS_SUCCESS
,
"LsaQueryInformationPolicy(PolicyAccountDomainInformation) failed, returned 0x%08lx
\n
"
,
status
);
if
(
status
==
STATUS_SUCCESS
)
{
pLsaFreeMemory
((
LPVOID
)
account_domain_info
);
}
status
=
pLsaQueryInformationPolicy
(
handle
,
PolicyDnsDomainInformation
,
(
PVOID
*
)
&
dns_domain_info
);
ok
(
status
==
STATUS_SUCCESS
,
"LsaQueryInformationPolicy(PolicyDnsDomainInformation) failed, returned 0x%08lx
\n
"
,
status
);
if
(
status
==
STATUS_SUCCESS
)
{
pLsaFreeMemory
((
LPVOID
)
dns_domain_info
);
}
status
=
pLsaClose
(
handle
);
ok
(
status
==
STATUS_SUCCESS
,
"LsaClose() failed, returned 0x%08lx
\n
"
,
status
);
...
...
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