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.

74 lines
1.5 KiB

  1. //#--------------------------------------------------------------
  2. //
  3. // File: sdoserverinfo.h
  4. //
  5. // Synopsis: This file holds the declarations of the
  6. // CSdoServerInfo class
  7. //
  8. //
  9. // History: 06/04/98 MKarki Created
  10. //
  11. // Copyright (C) 1997-98 Microsoft Corporation
  12. // All rights reserved.
  13. //
  14. //#--------------------------------------------------------------
  15. #ifndef _SDOSERVERINFO_H_
  16. #define _SDOSERVERINFO_H_
  17. #include "resource.h"
  18. #include <ias.h>
  19. #include <sdoias.h>
  20. #include <infohelper.h>
  21. typedef enum _object_type
  22. {
  23. OBJECT_TYPE_COMPUTER,
  24. OBJECT_TYPE_USER
  25. } OBJECTTYPE, *POBJECTTYPE;
  26. //
  27. // declaration of the CSdoServerInfo class
  28. //
  29. class CSdoServerInfo
  30. {
  31. public:
  32. //
  33. // this method gets the system type - NT Version,NT Type
  34. //
  35. HRESULT GetOSInfo (
  36. /*[in]*/ BSTR lpServerName,
  37. /*[out]*/ PIASOSTYPE pOSType
  38. );
  39. //
  40. // this method returns the NT Domain type
  41. //
  42. HRESULT GetDomainInfo (
  43. /*[in]*/ OBJECTTYPE ObjectType,
  44. /*[in]*/ BSTR lpObjectId,
  45. /*[out]*/ PIASDOMAINTYPE pDomainType
  46. );
  47. CSdoServerInfo (VOID);
  48. ~CSdoServerInfo(VOID);
  49. private:
  50. //
  51. //resolves the ADS path to a domain name
  52. //
  53. HRESULT GetDomainFromADsPath (
  54. /*[in]*/ LPCWSTR pObjectId,
  55. /*[out*/ LPWSTR pszDomainName
  56. );
  57. bool m_bIsNT5;
  58. };
  59. #endif // !define _SDOSERVERINFO_H_