NdfCreateSharingIncident function (ndfapi.h)
The NdfCreateSharingIncident function diagnoses network problems in accessing a specific network share.
Syntax
void NdfCreateSharingIncident(
[in] LPCWSTR UNCPath,
[out] NDFHANDLE *handle
);
Parameters
[in] UNCPath
Type: LPCWSTR
The full UNC string (for example, "\server\folder\file.ext") for the shared asset with which there is a connectivity issue.
[out] handle
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 code | Description |
---|---|
|
The operation succeeded. |
|
The underlying diagnosis or repair operation has been canceled. |
|
There is not enough memory available to complete this operation. |
|
One or more parameters are invalid. |
Requirements
Requirement | Value |
---|---|
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 |