Source code of Windows XP (NT5)
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

  1. //+--------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1996-1996
  5. //
  6. // File: svcrole.h
  7. //
  8. // Contents: This is the include to include common we need
  9. //
  10. // History:
  11. //
  12. //---------------------------------------------------------------------------
  13. #ifndef __SVCROLE_H__
  14. #define __SVCROLE_H__
  15. #include <windows.h>
  16. #include <ntsecapi.h>
  17. // Netxxx API includes
  18. #include <lmcons.h>
  19. #include <lmserver.h>
  20. #include <lmerr.h>
  21. #include <lmapibuf.h>
  22. typedef enum _SERVER_ROLE_IN_DOMAIN
  23. {
  24. SERVERROLE_ERROR,
  25. SERVERROLE_NOT4,
  26. SERVERROLE_NOTSERVER,
  27. SERVERROLE_STANDALONE,
  28. SERVERROLE_SERVER,
  29. SERVERROLE_PDC,
  30. SERVERROLE_BDC,
  31. SERVERROLE_NT4DOMAIN
  32. } SERVER_ROLE_IN_DOMAIN;
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif
  36. BOOL
  37. GetMachineGroup(
  38. LPWSTR pszServer,
  39. LPWSTR* pszGroupName
  40. );
  41. BOOL
  42. IsDomainController(
  43. LPWSTR Server,
  44. LPBOOL bDomainController
  45. );
  46. SERVER_ROLE_IN_DOMAIN
  47. GetServerRoleInDomain(
  48. LPWSTR Server
  49. );
  50. #ifdef __cplusplus
  51. }
  52. #endif
  53. #endif