NdfCreateIncident function (ndfapi.h)

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

[in] helperClassName

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.

[in] attributes

Type: HELPER_ATTRIBUTE*

The applicable HELPER_ATTRIBUTE structure.

[out] handle

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 code Description
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.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header ndfapi.h
Library Ndfapi.lib
DLL Ndfapi.dll

See also

NdfCloseIncident

NdfCreateWinSockIncident

NdfExecuteDiagnosis