ReactOS 0.4.16-dev-117-g38f21f9
DsRoleGetPrimaryDomainInformation.c File Reference
#include <apitest.h>
#include <windef.h>
#include <winbase.h>
#include <dsrole.h>
Include dependency graph for DsRoleGetPrimaryDomainInformation.c:

Go to the source code of this file.

Macros

#define WIN32_NO_STATUS
 

Functions

 START_TEST (DsRoleGetPrimaryDomainInformation)
 

Macro Definition Documentation

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 11 of file DsRoleGetPrimaryDomainInformation.c.

Function Documentation

◆ START_TEST()

Definition at line 16 of file DsRoleGetPrimaryDomainInformation.c.

17{
18 DWORD dwErrorCode;
20
21 // Get information about the domain membership of this computer.
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}
#define ok(value,...)
Definition: atltest.h:57
#define skip(...)
Definition: atltest.h:64
#define ERROR_SUCCESS
Definition: deptool.c:10
#define NULL
Definition: types.h:112
@ DsRole_RolePrimaryDomainController
Definition: dsrole.h:44
@ DsRole_RoleStandaloneWorkstation
Definition: dsrole.h:39
@ DsRolePrimaryDomainInfoBasic
Definition: dsrole.h:32
unsigned long DWORD
Definition: ntddk_ex.h:95
VOID WINAPI DsRoleFreeMemory(_In_ PVOID Buffer)
Definition: dssetup.c:82
DWORD WINAPI DsRoleGetPrimaryDomainInformation(LPCWSTR lpServer, DSROLE_PRIMARY_DOMAIN_INFO_LEVEL InfoLevel, PBYTE *Buffer)
Definition: dssetup.c:92
BYTE * PBYTE
Definition: pedump.c:66
DSROLE_MACHINE_ROLE MachineRole
Definition: dsrole.h:63