windows-nt/Source/XPSP1/NT/termsrv/license/tlserver/common/svcrole.h
2020-09-26 16:20:57 +08:00

65 lines
1.1 KiB
C

//+--------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1996-1996
//
// File: svcrole.h
//
// Contents: This is the include to include common we need
//
// History:
//
//---------------------------------------------------------------------------
#ifndef __SVCROLE_H__
#define __SVCROLE_H__
#include <windows.h>
#include <ntsecapi.h>
// Netxxx API includes
#include <lmcons.h>
#include <lmserver.h>
#include <lmerr.h>
#include <lmapibuf.h>
typedef enum _SERVER_ROLE_IN_DOMAIN
{
SERVERROLE_ERROR,
SERVERROLE_NOT4,
SERVERROLE_NOTSERVER,
SERVERROLE_STANDALONE,
SERVERROLE_SERVER,
SERVERROLE_PDC,
SERVERROLE_BDC,
SERVERROLE_NT4DOMAIN
} SERVER_ROLE_IN_DOMAIN;
#ifdef __cplusplus
extern "C" {
#endif
BOOL
GetMachineGroup(
LPWSTR pszServer,
LPWSTR* pszGroupName
);
BOOL
IsDomainController(
LPWSTR Server,
LPBOOL bDomainController
);
SERVER_ROLE_IN_DOMAIN
GetServerRoleInDomain(
LPWSTR Server
);
#ifdef __cplusplus
}
#endif
#endif