CompositionEngine.TrySetProcessEngine(CompositionEngineType) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attempts to set the composition engine type for the current process.
public:
static bool TrySetProcessEngine(CompositionEngineType requested);
static bool TrySetProcessEngine(CompositionEngineType const& requested);
public static bool TrySetProcessEngine(CompositionEngineType requested);
function trySetProcessEngine(requested)
Public Shared Function TrySetProcessEngine (requested As CompositionEngineType) As Boolean
Parameters
- requested
- CompositionEngineType
The CompositionEngineType to use for the process.
Returns
bool
true if the engine type was set successfully; otherwise, false.
Remarks
This method must be called before any composition objects are created. Once a composition engine type has been set, it cannot be changed.