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.

71 lines
1.4 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 HANDLE * NameHandleList,
  33. IN DWORD NameHandleCount,
  34. IN RESOURCE_HANDLE ResourceHandle
  35. );
  36. NET_API_STATUS
  37. DeleteServerName(
  38. IN RESOURCE_HANDLE ResourceHandle,
  39. IN LPWSTR ServerName
  40. );
  41. DWORD
  42. RegisterDnsRecords(
  43. IN PDNS_LISTS DnsLists,
  44. IN LPWSTR NetworkName,
  45. IN HKEY ResourceKey,
  46. IN RESOURCE_HANDLE ResourceHandle,
  47. IN BOOL LogRegistration,
  48. OUT PULONG NumberOfRegisteredNames
  49. );
  50. LPWSTR
  51. BuildUnicodeReverseName(
  52. IN LPWSTR IpAddress
  53. );