> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PartyCreateEndpointCompletedStateChange

> Information specific to the *CreateEndpointCompleted* type of state change.

Information specific to the *CreateEndpointCompleted* type of state change.

## Syntax

```cpp theme={null}
struct PartyCreateEndpointCompletedStateChange : PartyStateChange {  
    PartyStateChangeResult result;  
    PartyError errorDetail;  
    PartyNetwork* network;  
    PartyLocalUser* localUser;  
    void* asyncIdentifier;  
    PartyLocalEndpoint* localEndpoint;  
}  
```

### Members

**`result`**   [PartyStateChangeResult](/services/playfab/multiplayer/networking/reference/enums/partystatechangeresult)

Indicates that the create endpoint Succeeded or provides the reason that it failed.

**`errorDetail`**   PartyError

A diagnostic value providing additional troubleshooting information regarding any potential error condition.

The human-readable form of this error detail can be retrieved via [PartyManager::GetErrorMessage()](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage).

**`network`**   [PartyNetwork](/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/partynetwork)\*

The network used in the call associated with this state change.

**`localUser`**   [PartyLocalUser](/services/playfab/multiplayer/networking/reference/classes/PartyLocalUser/partylocaluser)\*\
*may be nullptr*

The local user provided to the call associated with this state change if one was provided.

**`asyncIdentifier`**   void\*

The async identifier provided to the call associated with this state change.

**`localEndpoint`**   [PartyLocalEndpoint](/services/playfab/multiplayer/networking/reference/classes/PartyLocalEndpoint/partylocalendpoint)\*

The endpoint that was created.

## Remarks

An associated [PartyEndpointCreatedStateChange](/services/playfab/multiplayer/networking/reference/structs/partyendpointcreatedstatechange) will be generated before this state change is generated.

## Requirements

**Header:** Party.h

## See also

[Party members](/services/playfab/multiplayer/networking/reference/party_members)\
[PartyNetwork::CreateEndpoint](/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_createendpoint)


## Related topics

- [PartyNetwork::CreateEndpoint](/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_createendpoint.md)
- [PartyStateChangeType](/services/playfab/multiplayer/networking/reference/enums/partystatechangetype.md)
- [Party C/C++ API overview](/services/playfab/multiplayer/networking/reference/party_members.md)
- [PartyDestroyEndpointCompletedStateChange](/services/playfab/multiplayer/networking/reference/structs/partydestroyendpointcompletedstatechange.md)
- [PartyRemoveLocalUserCompletedStateChange](/services/playfab/multiplayer/networking/reference/structs/partyremovelocalusercompletedstatechange.md)
