Share via


AnimationController.IsEventValid(Int32,Int32) Method (Microsoft.DirectX.Direct3D)

Determines whether a specified event handle is valid and an animation event has completed.

Definition

Visual Basic Public Function IsEventValid( _
    ByVal eventHandle As Integer, _
    ByRef result As Integer _
) As Boolean
C# public bool IsEventValid(
    int eventHandle,
    out int result
);
C++ public:
bool IsEventValid(
    int eventHandle,
    [Out] intresult
);
JScript public function IsEventValid(
    eventHandle : int,
    result : int
) : boolean;

Parameters

eventHandle System.Int32
Event handle to the animation event.
result System.Int32
HRESULT code passed back from the method.

Return Value

System.Boolean
Returns true if the method succeeds; false if it fails.

Remarks

This method indicates whether an event handle is valid even if the event is still running.