Compartilhar via


XSystemHandleCallback

Callback that is invoked when a GRTS handle is created or destroyed.

Syntax

typedef void (CALLBACK *XSystemHandleCallback)(
    _In_ XSystemHandle handle,
    _In_ XSystemHandleType type,
    _In_ XSystemHandleCallbackReason reason,
    _In_ void* context
    );

Parameters

handle    _In_
Type: XSystemHandle

The XSystemHandle whose state is changing. Callers will need to statically cast this to the correct GRTS handle type based on what is passed in the type parameter.

type    _In_
Type: XSystemHandleType

The GRTS type of the handle getting created or destroyed.

reason    _In_
Type: XSystemHandleCallbackReason

Indicates if the handle is getting created or destroyed.

context    _In_
Type: void *

User define context to be passed to the callback.

Remarks

This callback is set when the game calls XSystemHandleTrack.

Requirements

Header: XSystem.h

Library: xgameruntime.lib

Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles

See also

XSystem members

XSystemHandleTrack