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.

119 lines
2.4 KiB

  1. //#--------------------------------------------------------------
  2. //
  3. // File: infohelper.h
  4. //
  5. // Synopsis: This file holds the declarations of the
  6. // helper functions of the IASSDO.DLL
  7. //
  8. //
  9. // History: 06/08/98 MKarki Created
  10. //
  11. // Copyright (C) 1997-98 Microsoft Corporation
  12. // All rights reserved.
  13. //
  14. //#--------------------------------------------------------------
  15. #ifndef _INFOHELPER_H_
  16. #define _INFOHELPER_H_
  17. #include <ias.h>
  18. #include <dsgetdc.h>
  19. //
  20. // tracing id
  21. //
  22. #define TRACE_INFOHELPER 1002
  23. //
  24. // DsGetDcName signature
  25. //
  26. typedef DWORD (WINAPI *PDS_GET_DC_NAMEW)(
  27. LPCWSTR ComputerName,
  28. LPCWSTR DomainName,
  29. GUID *DomainGuid,
  30. LPCWSTR SiteName,
  31. ULONG Flags,
  32. PDOMAIN_CONTROLLER_INFOW *DomainControllerInfo
  33. );
  34. //
  35. // enumeration for the Version Info
  36. //
  37. typedef enum _NTVERSION_
  38. {
  39. NTVERSION_4 = 0,
  40. NTVERSION_5 = 1
  41. } NTVERSION;
  42. //
  43. // enumeration for the NT Type
  44. //
  45. typedef enum _NTTYPE_
  46. {
  47. NT_WKSTA = 0,
  48. NT_SVR = 1
  49. } NTTYPE;
  50. //
  51. // declarations of the helper methods
  52. //
  53. //
  54. // returns the OS Info for the specific machine
  55. //
  56. HRESULT
  57. SdoGetOSInfo (
  58. /*[in]*/ LPCWSTR lpServerName,
  59. /*[out]*/ PIASOSTYPE pSystemType
  60. );
  61. //
  62. // returns the domain info, given the domain or machine name
  63. //
  64. HRESULT
  65. SdoGetDomainInfo (
  66. /*[in]*/ LPCWSTR pszServerName,
  67. /*[in]*/ LPCWSTR pszDomainName,
  68. /*[out]*/ PIASDOMAINTYPE pDomainType
  69. );
  70. //
  71. // returns the Nt Type - Workstation or Server running
  72. // on the specified machine
  73. //
  74. HRESULT
  75. IsWorkstationOrServer (
  76. /*[in]*/ LPCWSTR pszComputerName,
  77. /*[out]*/ NTTYPE *pNtType
  78. );
  79. //
  80. // returns the NT Version - 4 or 5
  81. //
  82. HRESULT
  83. GetNTVersion (
  84. /*[in]*/ LPCWSTR lpComputerName,
  85. /*[out]*/ NTVERSION *pNtVersion
  86. );
  87. //
  88. // checks if the particular domain is mixed
  89. //
  90. HRESULT
  91. IsMixedDomain (
  92. LPCWSTR pszDomainName,
  93. PBOOL pbIsMixed
  94. );
  95. //
  96. // gets the domain name given a server name
  97. //
  98. HRESULT
  99. SdoGetDomainName (
  100. /*[in]*/ LPCWSTR pszServerName,
  101. /*[out]*/ LPWSTR pDomainName
  102. );
  103. #endif //_INFOHELPER_H_