Robert Reif : netapi32: Add minimal NetUserModalsGet test.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri May 5 12:10:06 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 2e28e4a7b36a5dfb8682232800d7c8e1e9019c5d
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=2e28e4a7b36a5dfb8682232800d7c8e1e9019c5d
Author: Robert Reif <reif at earthlink.net>
Date: Sat Apr 22 10:22:48 2006 -0400
netapi32: Add minimal NetUserModalsGet test.
---
dlls/netapi32/tests/access.c | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/dlls/netapi32/tests/access.c b/dlls/netapi32/tests/access.c
index be20e22..ef98a4a 100644
--- a/dlls/netapi32/tests/access.c
+++ b/dlls/netapi32/tests/access.c
@@ -45,6 +45,7 @@ static NET_API_STATUS (WINAPI *pNetApiBu
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 *pNetUserGetInfo)(LPCWSTR,LPCWSTR,DWORD,LPBYTE*)=NULL;
+static NET_API_STATUS (WINAPI *pNetUserModalsGet)(LPCWSTR,DWORD,LPBYTE*)=NULL;
static int init_access_tests(void)
{
@@ -170,6 +171,18 @@ static void run_querydisplayinformation1
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)
{
HMODULE hnetapi32=LoadLibraryA("netapi32.dll");
@@ -177,11 +190,14 @@ START_TEST(access)
pNetApiBufferSize=(void*)GetProcAddress(hnetapi32,"NetApiBufferSize");
pNetQueryDisplayInformation=(void*)GetProcAddress(hnetapi32,"NetQueryDisplayInformation");
pNetUserGetInfo=(void*)GetProcAddress(hnetapi32,"NetUserGetInfo");
+ pNetUserModalsGet=(void*)GetProcAddress(hnetapi32,"NetUserModalsGet");
+
if (!pNetApiBufferSize)
trace("It appears there is no netapi32 functionality on this platform\n");
if (init_access_tests()) {
run_usergetinfo_tests();
run_querydisplayinformation1_tests();
+ run_usermodalsget_tests();
}
}
More information about the wine-cvs
mailing list