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.
Syntax
HRESULT retVal = object.IsCurrent(pIsCurrent);
Parameters
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
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.