ReactOS
0.4.16-dev-297-gc569aee
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
DsRoleGetPrimaryDomainInformation.c
Go to the documentation of this file.
1
/*
2
* PROJECT: ReactOS netapi32.dll API Tests
3
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4
* PURPOSE: Tests for DsRoleGetPrimaryDomainInformation
5
* COPYRIGHT: Copyright 2017 Colin Finck (colin@reactos.org)
6
* Copyright 2018 Serge Gautherie <reactos-git_serge_171003@gautherie.fr>
7
*/
8
9
#include <
apitest.h
>
10
11
#define WIN32_NO_STATUS
12
#include <
windef.h
>
13
#include <
winbase.h
>
14
#include <
dsrole.h
>
15
16
START_TEST
(
DsRoleGetPrimaryDomainInformation
)
17
{
18
DWORD
dwErrorCode;
19
PDSROLE_PRIMARY_DOMAIN_INFO_BASIC
pInfo =
NULL
;
20
21
// Get information about the domain membership of this computer.
22
dwErrorCode =
DsRoleGetPrimaryDomainInformation
(
NULL
,
DsRolePrimaryDomainInfoBasic
, (
PBYTE
*)&pInfo);
23
ok
(dwErrorCode ==
ERROR_SUCCESS
,
"DsRoleGetPrimaryDomainInformation returns %lu!\n"
, dwErrorCode);
24
if
(pInfo ==
NULL
)
25
{
26
skip
(
"pInfo is NULL\n"
);
27
return
;
28
}
29
30
ok
(pInfo->
MachineRole
>=
DsRole_RoleStandaloneWorkstation
&& pInfo->
MachineRole
<=
DsRole_RolePrimaryDomainController
,
"pInfo->MachineRole is %u!\n"
, pInfo->
MachineRole
);
31
DsRoleFreeMemory
(pInfo);
32
}
apitest.h
ok
#define ok(value,...)
Definition:
atltest.h:57
skip
#define skip(...)
Definition:
atltest.h:64
START_TEST
#define START_TEST(x)
Definition:
atltest.h:75
ERROR_SUCCESS
#define ERROR_SUCCESS
Definition:
deptool.c:10
NULL
#define NULL
Definition:
types.h:112
dsrole.h
DsRole_RolePrimaryDomainController
@ DsRole_RolePrimaryDomainController
Definition:
dsrole.h:44
DsRole_RoleStandaloneWorkstation
@ DsRole_RoleStandaloneWorkstation
Definition:
dsrole.h:39
DsRolePrimaryDomainInfoBasic
@ DsRolePrimaryDomainInfoBasic
Definition:
dsrole.h:32
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
DsRoleFreeMemory
VOID WINAPI DsRoleFreeMemory(_In_ PVOID Buffer)
Definition:
dssetup.c:82
DsRoleGetPrimaryDomainInformation
DWORD WINAPI DsRoleGetPrimaryDomainInformation(LPCWSTR lpServer, DSROLE_PRIMARY_DOMAIN_INFO_LEVEL InfoLevel, PBYTE *Buffer)
Definition:
dssetup.c:92
PBYTE
BYTE * PBYTE
Definition:
pedump.c:66
_DSROLE_PRIMARY_DOMAIN_INFO_BASIC
Definition:
dsrole.h:62
_DSROLE_PRIMARY_DOMAIN_INFO_BASIC::MachineRole
DSROLE_MACHINE_ROLE MachineRole
Definition:
dsrole.h:63
winbase.h
windef.h
modules
rostests
apitests
netapi32
DsRoleGetPrimaryDomainInformation.c
Generated on Wed Nov 27 2024 06:07:21 for ReactOS by
1.9.6