Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IsCurrent method

Returns whether the device that is used to create the surface presenter front buffer is still the current device that is used to compose with.

Internet Explorer 9



HRESULT retVal = object.IsCurrent(pIsCurrent);


pIsCurrent [out, retval]

Type: BOOL

A flag that determines if the current device is the same as device that was used for the front buffer.

BOOL_FALSE (false)

The device is not the same.

BOOL_TRUE (true)

The device is the same.

Return value


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



Community Additions

© 2015 Microsoft