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.

104 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. dsgetdcp.h
  5. Abstract:
  6. Routines for processing SRV DNS records.
  7. Author:
  8. Cliff Van Dyke (cliffv) 07-Mar-1997
  9. Environment:
  10. User mode only.
  11. Contains NT-specific code.
  12. Requires ANSI C extensions: slash-slash comments, long external names.
  13. Revision History:
  14. --*/
  15. #if !defined(DSGETDCAPI)
  16. #if !defined(_DSGETDCAPI_)
  17. #define DSGETDCAPI DECLSPEC_IMPORT
  18. #else
  19. #define DSGETDCAPI
  20. #endif
  21. #endif !defined(DSGETDCAPI)
  22. //
  23. // Externally visible procedures.
  24. //
  25. DSGETDCAPI
  26. DWORD
  27. WINAPI
  28. DsGetDcNameWithAccountA(
  29. IN LPCSTR ComputerName OPTIONAL,
  30. IN LPCSTR AccountName OPTIONAL,
  31. IN ULONG AllowableAccountControlBits,
  32. IN LPCSTR DomainName OPTIONAL,
  33. IN GUID *DomainGuid OPTIONAL,
  34. IN LPCSTR SiteName OPTIONAL,
  35. IN ULONG Flags,
  36. OUT PDOMAIN_CONTROLLER_INFOA *DomainControllerInfo
  37. );
  38. DSGETDCAPI
  39. DWORD
  40. WINAPI
  41. DsGetDcNameWithAccountW(
  42. IN LPCWSTR ComputerName OPTIONAL,
  43. IN LPCWSTR AccountName OPTIONAL,
  44. IN ULONG AllowableAccountControlBits,
  45. IN LPCWSTR DomainName OPTIONAL,
  46. IN GUID *DomainGuid OPTIONAL,
  47. IN LPCWSTR SiteName OPTIONAL,
  48. IN ULONG Flags,
  49. OUT PDOMAIN_CONTROLLER_INFOW *DomainControllerInfo
  50. );
  51. NET_API_STATUS
  52. DCNameInitialize(
  53. VOID
  54. );
  55. VOID
  56. DCNameClose(
  57. VOID
  58. );
  59. NET_API_STATUS
  60. NetpDcBuildPing(
  61. IN BOOL PdcOnly,
  62. IN ULONG RequestCount,
  63. IN LPCWSTR UnicodeComputerName,
  64. IN LPCWSTR UnicodeUserName OPTIONAL,
  65. IN LPCSTR ResponseMailslotName,
  66. IN ULONG AllowableAccountControlBits,
  67. IN PSID RequestedDomainSid OPTIONAL,
  68. IN ULONG NtVersion,
  69. OUT PVOID *Message,
  70. OUT PULONG MessageSize
  71. );
  72. DWORD
  73. WINAPI
  74. NettestDsGetDcNameW(
  75. IN LPCWSTR ComputerName OPTIONAL,
  76. IN LPCWSTR DomainName OPTIONAL,
  77. IN GUID *DomainGuid OPTIONAL,
  78. IN LPCWSTR SiteName OPTIONAL,
  79. IN ULONG Flags,
  80. OUT PDOMAIN_CONTROLLER_INFOW *DomainControllerInfo
  81. );