DrtCreateDnsBootstrapResolver

DrtCreateDnsBootstrapResolver function

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 WINAPI DrtCreateDnsBootstrapResolver(
  _In_  USHORT                 port,
  _In_  PCWSTR                 pwszAddress,
  _Out_ DRT_BOOTSTRAP_PROVIDER **ppModule
);

Parameters

port [in]

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

pwszAddress [in]

Specifies the hostname of the well known node.

ppModule [out]

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 codeDescription
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

Minimum supported client

Windows 7 Professional [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Drt.h

Library

Drtprov.lib

DLL

Drt.dll

See also

DrtDeleteDnsBootstrapResolver
DRT_BOOTSTRAP_PROVIDER

 

 

Community Additions

ADD
Show:
© 2016 Microsoft