mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.1 KiB
64 lines
1.1 KiB
//+--------------------------------------------------------------------------
|
|
//
|
|
// 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
|
|
|