Leaked source code of windows server 2003
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.

67 lines
2.0 KiB

  1. /**********************************************************************/
  2. /** Microsoft LAN Manager **/
  3. /** Copyright(c) Microsoft Corp., 1990, 1991 **/
  4. /**********************************************************************/
  5. /*
  6. domenum.h
  7. This file contains the bitflags used to control the BROWSE_DOMAIN_ENUM
  8. domain enumerator.
  9. FILE HISTORY:
  10. KeithMo 22-Jul-1992 Created.
  11. */
  12. #ifndef _DOMENUM_H
  13. #define _DOMENUM_H
  14. #define BROWSE_LOGON_DOMAIN 0x00000001
  15. #define BROWSE_WKSTA_DOMAIN 0x00000002
  16. #define BROWSE_OTHER_DOMAINS 0x00000004
  17. #define BROWSE_TRUSTING_DOMAINS 0x00000008
  18. #define BROWSE_WORKGROUP_DOMAINS 0x00000010
  19. //
  20. // Some handy combinations of flags.
  21. //
  22. //
  23. // BROWSE_LM2X_DOMAINS will return only the domains available
  24. // from a LanMan 2.x workstation. This returns just the logon,
  25. // workstation, and other domains.
  26. //
  27. #define BROWSE_LM2X_DOMAINS ( BROWSE_LOGON_DOMAIN | \
  28. BROWSE_WKSTA_DOMAIN | \
  29. BROWSE_OTHER_DOMAINS )
  30. //
  31. // BROWSE_LOCAL_DOMAINS will return only the domains available
  32. // to the local machine. This returns the logon, workstation,
  33. // and other, plus the domains that trust "us".
  34. //
  35. #define BROWSE_LOCAL_DOMAINS ( BROWSE_LM2X_DOMAINS | \
  36. BROWSE_TRUSTING_DOMAINS )
  37. //
  38. // BROWSE_ALL_DOMAINS is a conglomeration of all potential domain
  39. // sources available to the domain enumerator.
  40. //
  41. #define BROWSE_ALL_DOMAINS ( BROWSE_LOCAL_DOMAINS | \
  42. BROWSE_WORKGROUP_DOMAINS )
  43. //
  44. // BROWSE_RESERVED contains the reserved bits in the domain enumerator
  45. // control flags. Nobody should be passing in any of these bits.
  46. //
  47. #define BROWSE_RESERVED ( ~BROWSE_ALL_DOMAINS )
  48. #endif // _DOMENUM_HXX