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.

83 lines
1.8 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: dcutil.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #ifndef HEADER_DCUTIL
  11. #define HEADER_DCUTIL
  12. PTESTED_DC
  13. AddTestedDc(IN NETDIAG_PARAMS *pParams,
  14. IN OUT NETDIAG_RESULT *pResults,
  15. IN PTESTED_DOMAIN TestedDomain,
  16. IN LPWSTR ComputerName,
  17. IN ULONG Flags
  18. );
  19. PTESTED_DC
  20. FindTestedDc(IN OUT NETDIAG_RESULT *pResults,
  21. IN LPWSTR ComputerName
  22. );
  23. NET_API_STATUS
  24. GetADc(IN NETDIAG_PARAMS *pParams,
  25. IN OUT NETDIAG_RESULT *pResults,
  26. OUT PLIST_ENTRY plmsgOutput,
  27. IN DSGETDCNAMEW *DsGetDcRoutine,
  28. IN PTESTED_DOMAIN TestedDomain,
  29. IN DWORD Flags,
  30. OUT PDOMAIN_CONTROLLER_INFOW *DomainControllerInfo
  31. );
  32. PTESTED_DC
  33. GetUpTestedDc(
  34. IN PTESTED_DOMAIN TestedDomain
  35. );
  36. BOOL
  37. GetIpAddressForDc(PTESTED_DC TestedDc);
  38. NET_API_STATUS
  39. DoDsGetDcName(IN NETDIAG_PARAMS *pParams,
  40. IN OUT NETDIAG_RESULT *pResults,
  41. OUT PLIST_ENTRY plmsgOutput,
  42. IN PTESTED_DOMAIN pTestedDomain,
  43. IN DWORD Flags,
  44. IN LPTSTR pszDcType,
  45. IN BOOLEAN IsFatal,
  46. OUT PDOMAIN_CONTROLLER_INFOW *DomainControllerInfo
  47. );
  48. VOID
  49. NetpIpAddressToStr(
  50. ULONG IpAddress,
  51. CHAR IpAddressString[NL_IP_ADDRESS_LENGTH+1]
  52. );
  53. VOID
  54. NetpIpAddressToWStr(
  55. ULONG IpAddress,
  56. WCHAR IpAddressString[NL_IP_ADDRESS_LENGTH+1]
  57. );
  58. NET_API_STATUS
  59. NetpDcBuildPing(
  60. IN BOOL PdcOnly,
  61. IN ULONG RequestCount,
  62. IN LPCWSTR UnicodeComputerName,
  63. IN LPCWSTR UnicodeUserName OPTIONAL,
  64. IN LPCSTR ResponseMailslotName,
  65. IN ULONG AllowableAccountControlBits,
  66. IN PSID RequestedDomainSid OPTIONAL,
  67. IN ULONG NtVersion,
  68. OUT PVOID *Message,
  69. OUT PULONG MessageSize
  70. );
  71. #endif