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

# CreateLifetimeTracker (XBOX Series consoles)

> Creates a lifetime tracker associated with an application-defined callback; the callback receives notifications when the lifetime of a tracked object is.

Creates a lifetime tracker associated with an application-defined callback; the callback receives notifications when the lifetime of a tracked object is changed.

## Syntax

```cpp theme={null}
HRESULT CreateLifetimeTracker(
    ID3D12LifetimeOwner  pOwner,
    const IID & riid,
    void  ppvTracker
)
```

### Parameters

*pOwner \[in]*\
Type: ID3D12LifetimeOwner \*

A pointer to an **ID3D12LifetimeOwner** interface representing the application-defined callback.

*riid \[in]*\
Type: const IID &

A reference to the interface identifier (IID) of the interface to return in *ppvTracker*.

*ppvTracker \[out]*\
Type: void \*\*

A pointer to a memory block that receives the requested interface pointer to the created object.

### Return value

Type: HRESULT

## Remarks

## Requirements

**Header:** d3d12\_xs.h\
**Library:** d3d12\_xs.lib\
**Supported Platforms**: XBOX Series consoles

## See Also


## Related topics

- [CreateHeap1 (XBOX Series consoles)](/reference/graphics/d3d12/interfaces/id3d12device4/methods/id3d12device4_createheap1_public.md)
- [CreatePlacedResource2 (XBOX Series consoles)](/reference/graphics/d3d12/interfaces/id3d12device10/methods/id3d12device10_createplacedresource2_public.md)
- [CreateReservedResource2 (XBOX Series consoles)](/reference/graphics/d3d12/interfaces/id3d12device10/methods/id3d12device10_createreservedresource2_public.md)
- [CreateCommandList1 (XBOX Series consoles)](/reference/graphics/d3d12/interfaces/id3d12device4/methods/id3d12device4_createcommandlist1_public.md)
- [CreateMetaCommand (XBOX Series consoles)](/reference/graphics/d3d12/interfaces/id3d12device5/methods/id3d12device5_createmetacommand_public.md)
