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.

72 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1995-1996 Microsoft Corporation
  3. Module Name:
  4. nameutil.h
  5. Abstract:
  6. Routines for manipulating LM workstation and server names.
  7. Author:
  8. Mike Massa (mikemas) 29-Dec-1995
  9. Revision History:
  10. --*/
  11. #include <windns.h>
  12. #include <dnsapi.h>
  13. #define NetNameSetResourceStatus ClusResSetResourceStatus
  14. //
  15. // definitions
  16. //
  17. //
  18. // function definitions
  19. //
  20. NET_API_STATUS
  21. AddAlternateComputerName(
  22. IN PCLUS_WORKER Worker,
  23. IN PNETNAME_RESOURCE Resource,
  24. IN LPWSTR * TransportList,
  25. IN DWORD TransportCount,
  26. IN PDOMAIN_ADDRESS_MAPPING DomainMapList,
  27. IN DWORD DomainMapCount
  28. );
  29. VOID
  30. DeleteAlternateComputerName(
  31. IN LPWSTR AlternateComputerName,
  32. IN LPWSTR DomainName OPTIONAL,
  33. IN HANDLE * NameHandleList,
  34. IN DWORD NameHandleCount,
  35. IN RESOURCE_HANDLE ResourceHandle
  36. );
  37. NET_API_STATUS
  38. DeleteServerName(
  39. IN RESOURCE_HANDLE ResourceHandle,
  40. IN LPWSTR ServerName
  41. );
  42. DWORD
  43. RegisterDnsRecords(
  44. IN PDNS_LISTS DnsLists,
  45. IN LPWSTR NetworkName,
  46. IN HKEY ResourceKey,
  47. IN RESOURCE_HANDLE ResourceHandle,
  48. IN BOOL LogRegistration,
  49. OUT PULONG NumberOfRegisteredNames
  50. );
  51. LPWSTR
  52. BuildUnicodeReverseName(
  53. IN LPWSTR IpAddress
  54. );