Share via


QueryPhysicsEngine (Windows Embedded CE 6.0)

1/6/2010

This function returns the state of the physics engine. If the engine mode is the default mode, the engine state is based on the current time indicated by the system clock. If the engine mode is PHYSICSENGINE_FLAG_USERTIME, then the engine state is based on the time specified in the most recent call to SetPhysicsEngineUserTime.

Syntax

HRESULT QueryPhysicsEngine(
    HPHYSICSENGINE hEngine,
   __out PHYSICSENGINESTATE* pState
);

Parameters

  • hEngine
    [in] A handle to a physics engine object.
  • pState
    [out] A pointer to a PHYSICSENGINESTATE structure that indicates the state of the physics engine.

Return Value

  • S_OK
    Indicates that the physics engine state is successfully returned.
  • E_INVALIDARG
    Indicates that a parameter is invalid.
  • E_UNEXPECTED
    Indicates that the physics engine object is not initialized.

Requirements

Header physicsengine.h, pwinuser.h
sysgen SYSGEN_PHYSICSENGINE

See Also

Reference

PHYSICSENGINESTATE

Other Resources

Physics Engine Functions
Physics Engine Reference