NdfCreateGroupingIncident function (ndfapi.h)
The NdfCreateGroupingIncident function creates a session to diagnose peer-to-peer grouping functionality issues.
Syntax
HRESULT NdfCreateGroupingIncident(
[in, optional] LPCWSTR CloudName,
[in, optional] LPCWSTR GroupName,
[in, optional] LPCWSTR Identity,
[in, optional] LPCWSTR Invitation,
[in, optional] SOCKET_ADDRESS_LIST *Addresses,
[in, optional] LPCWSTR appId,
[out] NDFHANDLE *handle
);
Parameters
[in, optional] CloudName
Type: LPCWSTR
The name of the Peer Name Resolution Protocol (PNRP) cloud where the group is created. If NULL, the session will not attempt to diagnose issues related to PNRP.
[in, optional] GroupName
Type: LPCWSTR
The name of the group to be diagnosed. If NULL, the session will not attempt to diagnose issues related to group availability.
[in, optional] Identity
Type: LPCWSTR
The identity that a peer uses to access the group. If NULL, the session will not attempt to diagnose issues related to the group's ability to register in PNRP.
[in, optional] Invitation
Type: LPCWSTR
An XML invitation granted by another peer. An invitation is created when the inviting peer calls PeerGroupCreateInvitation or PeerGroupIssueCredentials. If this value is present, the invitation will be checked to ensure its format and expiration are valid.
[in, optional] Addresses
Type: SOCKET_ADDRESS_LIST*
Optional list of addresses of the peers to which the application is trying to connect. If this parameter is used, the helper class will diagnose connectivity to these addresses.
[in, optional] appId
Type: LPCWSTR
Application ID for the calling application.
[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. |
|
One or more parameters has not been provided correctly. |
Remarks
The level of diagnosis performed depends on the parameters supplied.
- If no parameters are specified, NDF will validate the grouping service status, the status of peer-to-peer services (PNRP and Identity Manager), and Windows clock synchronization.
- If CloudName is specified, NDF will validate grouping functionality in that cloud.
- If GroupName is specified, NDF will validate that the name can be resolved in PNRP (or invoke the PNRP helper class if the name cannot be resolved) and validate the firewall settings for grouping.
- If Identity is specified, NDF will validate PNRP's ability to register the GroupName with this Identity. If this fails, the PNRP helper class will be invoked.
- If Invitation is specified, the GroupName will be derived from the Invitation (if a GroupName was not also specified) and NDF will validate the invitation's format and status.
- If Addresses is specified, NDF will validate whether Windows can connect to up to three of these addresses.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps only] |
Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
Target Platform | Windows |
Header | ndfapi.h |
Library | Ndfapi.lib |
DLL | Ndfapi.dll |