mirror of https://github.com/tongzx/nt5src
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
71 lines
1.4 KiB
/*++
|
|
|
|
Copyright (c) 1995-1996 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
nameutil.h
|
|
|
|
Abstract:
|
|
|
|
Routines for manipulating LM workstation and server names.
|
|
|
|
Author:
|
|
|
|
Mike Massa (mikemas) 29-Dec-1995
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
|
|
#include <windns.h>
|
|
#include <dnsapi.h>
|
|
|
|
#define NetNameSetResourceStatus ClusResSetResourceStatus
|
|
|
|
//
|
|
// definitions
|
|
//
|
|
|
|
//
|
|
// function definitions
|
|
//
|
|
|
|
NET_API_STATUS
|
|
AddAlternateComputerName(
|
|
IN PCLUS_WORKER Worker,
|
|
IN PNETNAME_RESOURCE Resource,
|
|
IN LPWSTR * TransportList,
|
|
IN DWORD TransportCount,
|
|
IN PDOMAIN_ADDRESS_MAPPING DomainMapList,
|
|
IN DWORD DomainMapCount
|
|
);
|
|
|
|
VOID
|
|
DeleteAlternateComputerName(
|
|
IN LPWSTR AlternateComputerName,
|
|
IN HANDLE * NameHandleList,
|
|
IN DWORD NameHandleCount,
|
|
IN RESOURCE_HANDLE ResourceHandle
|
|
);
|
|
|
|
NET_API_STATUS
|
|
DeleteServerName(
|
|
IN RESOURCE_HANDLE ResourceHandle,
|
|
IN LPWSTR ServerName
|
|
);
|
|
|
|
DWORD
|
|
RegisterDnsRecords(
|
|
IN PDNS_LISTS DnsLists,
|
|
IN LPWSTR NetworkName,
|
|
IN HKEY ResourceKey,
|
|
IN RESOURCE_HANDLE ResourceHandle,
|
|
IN BOOL LogRegistration,
|
|
OUT PULONG NumberOfRegisteredNames
|
|
);
|
|
|
|
LPWSTR
|
|
BuildUnicodeReverseName(
|
|
IN LPWSTR IpAddress
|
|
);
|