DrtCreateDnsBootstrapResolver function (drt.h)

The DrtCreateDnsBootstrapResolver function creates a bootstrap resolver that will use the GetAddrInfo system function to resolve the hostname of a will known node already present in the DRT mesh.

Syntax

HRESULT DrtCreateDnsBootstrapResolver(
  [in]  USHORT                 port,
  [in]  PCWSTR                 pwszAddress,
  [out] DRT_BOOTSTRAP_PROVIDER **ppModule
);

Parameters

[in] port

Specifies the port to which the DRT protocol is bound on the well known node.

[in] pwszAddress

Specifies the hostname of the well known node.

[out] ppModule

Pointer to the DRT_BOOTSTRAP_PROVIDER module to be included in the DRT_SETTINGS structure.

Return value

This function returns S_OK on success. Other possible values include:

Return code Description
E_INVALIDARG
pwszAddress is NULL.
E_OUTOFMEMORY
The system could not allocate memory for the provider.
 
Note  This function may also return errors from underlying calls to WSAStartup and StringCbPrintfW.
 

Requirements

Requirement Value
Minimum supported client Windows 7 Professional [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header drt.h
Library Drtprov.lib
DLL Drt.dll

See also

DRT_BOOTSTRAP_PROVIDER

DrtDeleteDnsBootstrapResolver