> ## 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.

# PFEntityIsTitlePlayer

> Convenience method to check if an Entity is a Title Player. This is equivalent to calling PFEntityGetEntityKey and comparing entityKey.type to.

Convenience method to check if an Entity is a Title Player. This is equivalent to calling PFEntityGetEntityKey and comparing entityKey.type to PFTitlePlayerEntityType.

## Syntax

```cpp theme={null}
HRESULT PFEntityIsTitlePlayer(  
    PFEntityHandle entityHandle,  
    bool* isTitlePlayer  
)  
```

### Parameters

**`entityHandle`**   PFEntityHandle

PFEntityHandle returned from a auth call.

**`isTitlePlayer`**   bool\*<br />*output*

Will be set to true if the entity is a TitlePlayer and false otherwise.

### Return value

Type: HRESULT

Result code for this API operation.

## Requirements

**Header:** PFEntity.h

## See also

[PFEntity members](/services/playfab/api-references/c/pfentity/pfentity_members)


## Related topics

- [Entity Handles](/services/playfab/sdks/c/entity-handles.md)
- [Services C API overview - PFEntity.h](/services/playfab/api-references/c/pfentity/pfentity_members.md)
- [player_removed_title](/services/playfab/api-references/events/PlayerIdentity/player-removed-title.md)
- [player_added_title](/services/playfab/api-references/events/PlayerIdentity/player-added-title.md)
- [Entities quickstart](/services/playfab/live-service-management/game-configuration/entities/quickstart.md)
