NdfCreateDNSIncident function

The NdfCreateDNSIncident function diagnoses name resolution issues in resolving a specific host name.

Syntax


HRESULT WINAPI NdfCreateDNSIncident(
  _In_  LPCWSTR   hostname,
        WORD      querytype,
  _Out_ NDFHANDLE *handle
);

Parameters

hostname [in]

Type: LPCWSTR

The host name with which there is a name resolution issue.

querytype

Type: WORD

The numeric representation of the type of record that was queried when the issue occurred. For more information and a complete listing of record set types and their numeric representations, see the windns.h header file.

This parameter should be set to DNS_TYPE_ZERO for generic DNS resolution diagnosis.

handle [out]

Type: NDFHANDLE*

Handle to the Network Diagnostics Framework incident.

Return value

Type: HRESULT

Possible return values include, but are not limited to, the following.

Return codeDescription
S_OK

The operation succeeded.

E_ABORT

The underlying diagnosis or repair operation has been canceled.

E_OUTOFMEMORY

There is not enough memory available to complete this operation.

NDF_E_BAD_PARAM

One or more parameters are invalid.

 

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Ndfapi.h

Library

Ndfapi.lib

DLL

Ndfapi.dll

 

 

Community Additions

ADD
Show: