NdfCreateWinSockIncident function (ndfapi.h)
The NdfCreateWinSockIncident function provides access to the Winsock Helper Class provided by Microsoft.
Syntax
void NdfCreateWinSockIncident(
SOCKET sock,
[in, optional] LPCWSTR host,
USHORT port,
[in, optional] LPCWSTR appId,
[in, optional] SID *userId,
[out] NDFHANDLE *handle
);
Parameters
sock
Type: SOCKET
A descriptor identifying a connected socket.
[in, optional] host
Type: LPCWSTR
A pointer to the local host.
port
Type: USHORT
The port providing Winsock access.
[in, optional] appId
Type: LPCWSTR
Unique identifier associated with the application.
[in, optional] userId
Type: SID*
Unique identifier associated with the user.
[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. |
|
There is not enough memory available to complete this operation. |
|
One or more parameters are invalid. |
|
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 |