NdfCreateSharingIncident function

The NdfCreateSharingIncident function diagnoses network problems in accessing a specific network share.

Syntax


HRESULT WINAPI NdfCreateSharingIncident(
  _In_  LPCWSTR   sharename,
  _Out_ NDFHANDLE *handle
);

Parameters

sharename [in]

Type: LPCWSTR

The full UNC string (for example, "\\server\folder\file.ext") for the shared asset with which there is a connectivity issue.

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: