NdfCreateIncident function

The NdfCreateIncident function is used internally by application developers to test the NDF functionality incorporated into their application.

Syntax


HRESULT NdfCreateIncident(
  _In_   LPCWSTR helperClassName,
  ULONG celt,
  _In_   HELPER_ATTRIBUTE *attributes,
  _Out_  NDFHANDLE *handle
);

Parameters

helperClassName [in]

Type: LPCWSTR

The name of the helper class to be used in the diagnoses of the incident.

celt

Type: ULONG

A count of elements in the attributes array.

attributes [in]

Type: HELPER_ATTRIBUTE*

The applicable HELPER_ATTRIBUTE structure.

handle [out]

Type: NDFHANDLE*

A 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_OUTOFMEMORY

There is not enough memory available to complete this operation.

NDF_E_BAD_PARAM

One or more parameters are invalid.

NDF_E_NOHELPERCLASS

helperClassName is NULL.

 

Examples

To view an example, see NDF Diagnostics Example.

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

See also

NdfCloseIncident
NdfCreateWinSockIncident
NdfExecuteDiagnosis

 

 

Community Additions

ADD
Show:
© 2014 Microsoft