Share via


IsHardwareComposition method

Returns whether MSHTML is using hardware acceleration to do composition of the page contents.

 

Syntax

HRESULT retVal = object.IsHardwareComposition(pIsHardwareComposition);

Parameters

pIsHardwareComposition [out, retval]

Type: BOOL

A flag that determines if hardware acceleration is enabled in mshtml.

BOOL_FALSE (false)

Hardware acceleration is not enabled in mshtml.

BOOL_TRUE (true)

Hardware acceleration is enabled.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.