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
2e28e4a7
Commit
2e28e4a7
authored
Apr 22, 2006
by
Robert Reif
Committed by
Alexandre Julliard
May 05, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netapi32: Add minimal NetUserModalsGet test.
parent
a64e13c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
access.c
dlls/netapi32/tests/access.c
+16
-0
No files found.
dlls/netapi32/tests/access.c
View file @
2e28e4a7
...
@@ -45,6 +45,7 @@ static NET_API_STATUS (WINAPI *pNetApiBufferFree)(LPVOID)=NULL;
...
@@ -45,6 +45,7 @@ static NET_API_STATUS (WINAPI *pNetApiBufferFree)(LPVOID)=NULL;
static
NET_API_STATUS
(
WINAPI
*
pNetApiBufferSize
)(
LPVOID
,
LPDWORD
)
=
NULL
;
static
NET_API_STATUS
(
WINAPI
*
pNetApiBufferSize
)(
LPVOID
,
LPDWORD
)
=
NULL
;
static
NET_API_STATUS
(
WINAPI
*
pNetQueryDisplayInformation
)(
LPWSTR
,
DWORD
,
DWORD
,
DWORD
,
DWORD
,
LPDWORD
,
PVOID
*
)
=
NULL
;
static
NET_API_STATUS
(
WINAPI
*
pNetQueryDisplayInformation
)(
LPWSTR
,
DWORD
,
DWORD
,
DWORD
,
DWORD
,
LPDWORD
,
PVOID
*
)
=
NULL
;
static
NET_API_STATUS
(
WINAPI
*
pNetUserGetInfo
)(
LPCWSTR
,
LPCWSTR
,
DWORD
,
LPBYTE
*
)
=
NULL
;
static
NET_API_STATUS
(
WINAPI
*
pNetUserGetInfo
)(
LPCWSTR
,
LPCWSTR
,
DWORD
,
LPBYTE
*
)
=
NULL
;
static
NET_API_STATUS
(
WINAPI
*
pNetUserModalsGet
)(
LPCWSTR
,
DWORD
,
LPBYTE
*
)
=
NULL
;
static
int
init_access_tests
(
void
)
static
int
init_access_tests
(
void
)
{
{
...
@@ -170,6 +171,18 @@ static void run_querydisplayinformation1_tests(void)
...
@@ -170,6 +171,18 @@ static void run_querydisplayinformation1_tests(void)
ok
(
hasAdmin
,
"Has Administrator account
\n
"
);
ok
(
hasAdmin
,
"Has Administrator account
\n
"
);
}
}
static
void
run_usermodalsget_tests
(
void
)
{
NET_API_STATUS
rc
;
USER_MODALS_INFO_2
*
umi2
=
NULL
;
rc
=
pNetUserModalsGet
(
NULL
,
2
,
(
LPBYTE
*
)
&
umi2
);
ok
(
rc
==
ERROR_SUCCESS
,
"NetUserModalsGet failed, rc = %ld
\n
"
,
rc
);
if
(
umi2
)
pNetApiBufferFree
(
umi2
);
}
START_TEST
(
access
)
START_TEST
(
access
)
{
{
HMODULE
hnetapi32
=
LoadLibraryA
(
"netapi32.dll"
);
HMODULE
hnetapi32
=
LoadLibraryA
(
"netapi32.dll"
);
...
@@ -177,11 +190,14 @@ START_TEST(access)
...
@@ -177,11 +190,14 @@ START_TEST(access)
pNetApiBufferSize
=
(
void
*
)
GetProcAddress
(
hnetapi32
,
"NetApiBufferSize"
);
pNetApiBufferSize
=
(
void
*
)
GetProcAddress
(
hnetapi32
,
"NetApiBufferSize"
);
pNetQueryDisplayInformation
=
(
void
*
)
GetProcAddress
(
hnetapi32
,
"NetQueryDisplayInformation"
);
pNetQueryDisplayInformation
=
(
void
*
)
GetProcAddress
(
hnetapi32
,
"NetQueryDisplayInformation"
);
pNetUserGetInfo
=
(
void
*
)
GetProcAddress
(
hnetapi32
,
"NetUserGetInfo"
);
pNetUserGetInfo
=
(
void
*
)
GetProcAddress
(
hnetapi32
,
"NetUserGetInfo"
);
pNetUserModalsGet
=
(
void
*
)
GetProcAddress
(
hnetapi32
,
"NetUserModalsGet"
);
if
(
!
pNetApiBufferSize
)
if
(
!
pNetApiBufferSize
)
trace
(
"It appears there is no netapi32 functionality on this platform
\n
"
);
trace
(
"It appears there is no netapi32 functionality on this platform
\n
"
);
if
(
init_access_tests
())
{
if
(
init_access_tests
())
{
run_usergetinfo_tests
();
run_usergetinfo_tests
();
run_querydisplayinformation1_tests
();
run_querydisplayinformation1_tests
();
run_usermodalsget_tests
();
}
}
}
}
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