#include <stdarg.h>
#include <wine/test.h>
#include <windef.h>
#include <winbase.h>
#include <winerror.h>
#include <dsrole.h>
Go to the source code of this file.
◆ DWORD()
static DWORD |
( |
WINAPI * |
pDsRoleGetPrimaryDomainInformation | ) |
|
|
static |
◆ START_TEST()
Definition at line 77 of file ds.c.
78{
80
81 pDsRoleGetPrimaryDomainInformation=(
void*)
GetProcAddress(hnetapi32,
"DsRoleGetPrimaryDomainInformation");
82 if (pDsRoleGetPrimaryDomainInformation)
83 {
84 pDsRoleFreeMemory=(
void*)
GetProcAddress(hnetapi32,
"DsRoleFreeMemory");
85
88 }
89 else
90 win_skip(
"DsRoleGetPrimaryDomainInformation is not available\n");
91
93}
#define GetProcAddress(x, y)
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
static void test_get(void)
static void test_params(void)
◆ test_get()
Definition at line 53 of file ds.c.
54{
59
63 pDsRoleFreeMemory(dpdi);
64
68 pDsRoleFreeMemory(dusi);
69
73 pDsRoleFreeMemory(dosi);
74}
@ DsRolePrimaryDomainInfoBasic
Referenced by START_TEST().
◆ test_params()
Definition at line 32 of file ds.c.
33{
36
40
42 ret = pDsRoleGetPrimaryDomainInformation(
NULL, 0,
NULL);
45 ret = pDsRoleGetPrimaryDomainInformation(
NULL, 4,
NULL);
47
49 ret = pDsRoleGetPrimaryDomainInformation(
NULL, 4, (
PBYTE *)&dpdi);
51}
#define ERROR_INVALID_PARAMETER
Referenced by START_TEST().
◆ void()
◆ DSROLE_PRIMARY_DOMAIN_INFO_LEVEL
Definition at line 29 of file ds.c.